Add custom-zsh
file option
Add option to customize the config without having to resolve problems every time you need to pull on updates
This commit is contained in:
parent
e61330da60
commit
ab5c459801
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
custom-zshrc
|
@ -1,6 +1,12 @@
|
|||||||
# ZSH
|
# ZSH
|
||||||
My ZSH config
|
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
|
## Setup
|
||||||
- Clone the repository to your home folder
|
- Clone the repository to your home folder
|
||||||
```
|
```
|
||||||
|
2
zshrc
2
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/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/oh-my-zsh-dirhistory/dirhistory.plugin.zsh 2>/dev/null
|
||||||
source $HOME/zsh/zsh-z/zsh-z.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"
|
alias mon2cam="deno run --unstable -A -r -q https://raw.githubusercontent.com/ShayBox/Mon2Cam/master/src/mod.ts"
|
||||||
|
Reference in New Issue
Block a user