zsh refactor

This commit is contained in:
thek4n 2024-12-12 15:29:10 +03:00
parent 3775a9b8ec
commit b3d83a2d78

View File

@ -3,9 +3,9 @@
install_if_not_exists() { install_if_not_exists() {
local path="$HOME/.config/zsh/plugins/$1" local path="${HOME}/.config/zsh/plugins/${1}"
if [ ! -d "$path" ]; then if [ ! -d "${path}" ]; then
/usr/bin/git clone "https://github.com/$1" "$path" /usr/bin/git clone "https://github.com/${1}" "${path}"
fi fi
} }
@ -15,8 +15,8 @@ install_if_not_exists hlissner/zsh-autopair
install_if_not_exists unixorn/fzf-zsh-plugin install_if_not_exists unixorn/fzf-zsh-plugin
install_if_not_exists marlonrichert/zsh-autocomplete install_if_not_exists marlonrichert/zsh-autocomplete
_so ~/.config/zsh/plugins/zsh-users/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh _so "${HOME}/.config/zsh/plugins/zsh-users/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
_so ~/.config/zsh/plugins/zsh-users/zsh-autosuggestions/zsh-autosuggestions.zsh _so "${HOME}/.config/zsh/plugins/zsh-users/zsh-autosuggestions/zsh-autosuggestions.zsh"
_so ~/.config/zsh/plugins/hlissner/zsh-autopair/autopair.zsh _so "${HOME}/.config/zsh/plugins/hlissner/zsh-autopair/autopair.zsh"
_so ~/.config/zsh/plugins/unixorn/fzf-zsh-plugin/fzf-zsh-plugin.plugin.zsh _so "${HOME}/.config/zsh/plugins/unixorn/fzf-zsh-plugin/fzf-zsh-plugin.plugin.zsh"
_so ~/.config/zsh/plugins/marlonrichert/zsh-autocomplete/zsh-autocomplete.plugin.zsh _so "${HOME}/.config/zsh/plugins/marlonrichert/zsh-autocomplete/zsh-autocomplete.plugin.zsh"