diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ac235e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +custom-zshrc diff --git a/README.md b/README.md index 19cde7d..e5ae372 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,12 @@ # ZSH My ZSH config +## Your own customizations +If you want to make any customizations to your config without deleting them, or merging them, every time I update, here's the solution: + - Make a file called `custom-zshrc` in your `$HOME/zsh` directory + - Put your customizations in that file +The file is in `.gitignore`, so it won't interfere with the repository and you can pull updates without resolving differences between local files and the repository. It is also set to be sourced in the `zshrc` file, so you really don't have to set up anything, just add the customizations. + ## Setup - Clone the repository to your home folder ``` diff --git a/zshrc b/zshrc index a2d4100..38193f2 100644 --- a/zshrc +++ b/zshrc @@ -53,5 +53,5 @@ source $HOME/zsh/ssh-connect/ssh-connect.sh 2>/dev/null source $HOME/zsh/web-search/web_search.plugin.zsh 2>/dev/null source $HOME/zsh/oh-my-zsh-dirhistory/dirhistory.plugin.zsh 2>/dev/null source $HOME/zsh/zsh-z/zsh-z.plugin.zsh 2>/dev/null -#source /usr/share/autojump/autojump.zsh 2>/dev/null +sourcd $HOME/zsh/custom-zshrc 2>/dev/null alias mon2cam="deno run --unstable -A -r -q https://raw.githubusercontent.com/ShayBox/Mon2Cam/master/src/mod.ts"