refactor: .zshrc
This commit is contained in:
1 parent
bb27c96ba2
commit
b85cb76e29
1 file changed
+6
-13
+6
-13
@@ -8,34 +8,27 @@ fi
|
|||||||
|
|
||||||
source "$ZAP_SCRIPT"
|
source "$ZAP_SCRIPT"
|
||||||
|
|
||||||
repos=(
|
remote_plugins=(
|
||||||
# remote plugins
|
|
||||||
zap-zsh/supercharge
|
zap-zsh/supercharge
|
||||||
zap-zsh/fzf
|
zap-zsh/fzf
|
||||||
wintermi/zsh-brew
|
|
||||||
wintermi/zsh-lsd
|
wintermi/zsh-lsd
|
||||||
wintermi/zsh-fnm
|
wintermi/zsh-fnm
|
||||||
zsh-users/zsh-autosuggestions
|
zsh-users/zsh-autosuggestions
|
||||||
zsh-users/zsh-completions
|
zsh-users/zsh-completions
|
||||||
zdharma-continuum/fast-syntax-highlighting
|
zdharma-continuum/fast-syntax-highlighting
|
||||||
hlissner/zsh-autopair
|
hlissner/zsh-autopair
|
||||||
# local plugins
|
|
||||||
"$ZDOTDIR/aliases.zsh"
|
|
||||||
"$ZDOTDIR/exports.zsh"
|
|
||||||
"$ZDOTDIR/eval.zsh"
|
|
||||||
)
|
)
|
||||||
mac_only_repos=(wintermi/zsh-brew)
|
plugins=("${remote_plugins[@]}" "$ZDOTDIR/*")
|
||||||
|
mac_plugins=(wintermi/zsh-brew)
|
||||||
|
|
||||||
case "$(uname -s)" in
|
case "$(uname -s)" in
|
||||||
|
|
||||||
Darwin)
|
Darwin)
|
||||||
# echo 'Mac OS X'
|
# echo 'Mac OS X'
|
||||||
|
plugins=("${mac_plugins[@]}" "${plugins[@]}")
|
||||||
;;
|
;;
|
||||||
|
|
||||||
Linux)
|
Linux)
|
||||||
for repo in $mac_only_repos; do repos=("${repos[@]/$repo}"); done
|
# echo 'Linux'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
CYGWIN* | MINGW32* | MSYS* | MINGW*)
|
CYGWIN* | MINGW32* | MSYS* | MINGW*)
|
||||||
# echo 'MS Windows'
|
# echo 'MS Windows'
|
||||||
;;
|
;;
|
||||||
@@ -44,7 +37,7 @@ CYGWIN* | MINGW32* | MSYS* | MINGW*)
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
for repo in $repos; do plug $repo; done
|
for plugin in $plugins; do plug $plugin; done
|
||||||
|
|
||||||
# Clean startup prompt
|
# Clean startup prompt
|
||||||
[ ! -f ~/.hushlogin ] && touch ~/.hushlogin
|
[ ! -f ~/.hushlogin ] && touch ~/.hushlogin
|
||||||
|
|||||||
Reference in new issue
Block a user