Use submodules for other zsh plugins
This commit is contained in:
parent
eadd69b0c6
commit
1314b22f27
1
.config/zsh/plugins/zsh-autosuggestions
Submodule
1
.config/zsh/plugins/zsh-autosuggestions
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 0e810e5afa27acbd074398eefbe28d13005dbc15
|
1
.config/zsh/plugins/zsh-syntax-highlighting
Submodule
1
.config/zsh/plugins/zsh-syntax-highlighting
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 5eb677bb0fa9a3e60f0eff031dc13926e093df92
|
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -1,3 +1,9 @@
|
|||||||
[submodule ".config/zsh/plugins/zsh-git-prompt"]
|
[submodule ".config/zsh/plugins/zsh-git-prompt"]
|
||||||
path = .config/zsh/plugins/zsh-git-prompt
|
path = .config/zsh/plugins/zsh-git-prompt
|
||||||
url = https://github.com/zsh-git-prompt/zsh-git-prompt.git
|
url = https://github.com/zsh-git-prompt/zsh-git-prompt.git
|
||||||
|
[submodule ".config/zsh/plugins/zsh-syntax-highlighting"]
|
||||||
|
path = .config/zsh/plugins/zsh-syntax-highlighting
|
||||||
|
url = https://github.com/zsh-users/zsh-syntax-highlighting.git
|
||||||
|
[submodule ".config/zsh/plugins/zsh-autosuggestions"]
|
||||||
|
path = .config/zsh/plugins/zsh-autosuggestions
|
||||||
|
url = https://github.com/zsh-users/zsh-autosuggestions
|
||||||
|
9
.zshrc
9
.zshrc
@ -9,15 +9,8 @@ if [[ $(uname) == "Darwin" ]]; then
|
|||||||
export ANDROID_SDK_ROOT=/Users/$USER/Library/Android/sdk
|
export ANDROID_SDK_ROOT=/Users/$USER/Library/Android/sdk
|
||||||
alias date=gdate;
|
alias date=gdate;
|
||||||
eval "$(rbenv init - zsh)"
|
eval "$(rbenv init - zsh)"
|
||||||
|
|
||||||
source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
||||||
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
||||||
|
|
||||||
else
|
else
|
||||||
export PATH="${PATH}:${HOME}/.local/bin:/usr/local/sbin:${HOME}/.local/share/gem/ruby/2.0.0/bin:/usr/local/bin"
|
export PATH="${PATH}:${HOME}/.local/bin:/usr/local/sbin:${HOME}/.local/share/gem/ruby/2.0.0/bin:/usr/local/bin"
|
||||||
|
|
||||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
|
|
||||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Config
|
# Config
|
||||||
@ -27,6 +20,8 @@ export EDITOR=nvim
|
|||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
source "$CONFIGDIR/zsh/plugins/zsh-git-prompt/zshrc.sh"
|
source "$CONFIGDIR/zsh/plugins/zsh-git-prompt/zshrc.sh"
|
||||||
|
source "$CONFIGDIR/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||||
|
source "$CONFIGDIR/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
||||||
|
|
||||||
# Use NVIM
|
# Use NVIM
|
||||||
alias vim=nvim
|
alias vim=nvim
|
||||||
|
Loading…
Reference in New Issue
Block a user