Overhaul of zsh config
This commit is contained in:
@@ -23,16 +23,16 @@ for option in "$@"; do
|
||||
link "$PWD/alacritty/alacritty.toml" "$HOME/.config/alacritty/alacritty.toml"
|
||||
;;
|
||||
zsh)
|
||||
[ ! -d "$HOME/.config/zsh" ] && mkdir -p "$HOME/.config/zsh"
|
||||
link "$PWD/zsh/.zshrc" "$HOME/.config/zsh/.zshrc"
|
||||
link "$PWD/zsh/aliases" "$HOME/.config/zsh/aliases"
|
||||
[ -e "/etc/zsh/zshenv" ] && sudo mv /etc/zsh/zshenv /etc/zsh/zshenv.bak && sudo ln -s "$PWD/zsh/zshenv" /etc/zsh/zshenv || sudo ln -s "$PWD/zsh/zshenv" /etc/zsh/zshenv
|
||||
curl -fLo $HOME/.config/zsh/zsh-autosuggestions.zsh --create-dirs \
|
||||
https://raw.githubusercontent.com/zsh-users/zsh-autosuggestions/master/zsh-autosuggestions.zsh
|
||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $HOME/.config/zsh/zsh-syntax-highlighting
|
||||
git clone https://github.com/romkatv/gitstatus.git $HOME/.config/zsh/gitstatus
|
||||
mv "$HOME/.config/zsh/gitstatus/gitstatus.prompt.zsh" "$HOME/.config/zsh/gitstatus/gitstatus.prompt.zsh.bak"
|
||||
link "$PWD/zsh/gitstatus.prompt.zsh" "$HOME/.config/zsh/gitstatus/gitstatus.prompt.zsh"
|
||||
mkdir -p "$HOME/.config/zsh"
|
||||
mkdir -p "/etc/zsh"
|
||||
echo "export ZDOTDIR=\"\$HOME\"/.config/zsh" | sudo tee /etc/zsh/zshenv
|
||||
|
||||
ZSH="$HOME/.config/zsh/ohmyzsh" sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
|
||||
|
||||
mkdir -p ~/.config/zsh/ohmyzsh/custom/plugins
|
||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.config/zsh/ohmyzsh/custom/plugins/zsh-syntax-highlighting
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.config/zsh/ohmyzsh/custom/plugins/zsh-autosuggestions
|
||||
link "$PWD/zsh/zshrc" "$HOME/.config/zsh/.zshrc"
|
||||
;;
|
||||
git)
|
||||
[ ! -d "$HOME/.config/git" ] && mkdir -p "$HOME/.config/git"
|
||||
|
||||
Reference in New Issue
Block a user