Move zsh plugins and themes to .config/zsh for better home-manager dotfiles installation

Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
Ivan Bushchik 2024-01-02 17:05:24 +03:00
parent d706ad3a3b
commit a13b0d4252
No known key found for this signature in database
GPG key ID: 2F16FBF3262E090C
3 changed files with 8 additions and 8 deletions

View file

@ -7,7 +7,7 @@ function reset_broken_terminal () {
printf '%b' '\e[0m\e(B\e)0\017\e[?5l\e7\e[0;0r\e8' printf '%b' '\e[0m\e(B\e)0\017\e[?5l\e7\e[0;0r\e8'
} }
export ZSH="$HOME/.dotfiles/zsh" export ZSH="$HOME/.config/zsh"
# Setup history # Setup history

View file

@ -15,11 +15,11 @@ then
echo "Aborting." echo "Aborting."
exit 255 exit 255
fi fi
mkdir -p $HOME/.dotfiles/zsh/{plugins,themes} mkdir -p $HOME/.config/zsh/{plugins,themes}
ZSH="$HOME/.dotfiles/zsh" ZSH="$HOME/.config/zsh"
echo "Installing zsh theme and plugins" echo "Installing zsh theme and plugins"
curl -fsSL https://raw.githubusercontent.com/ivabus/ivabus-zsh-theme/master/ivabus.zsh-theme -o $HOME/.dotfiles/zsh/themes/ivabus.zsh-theme > /dev/null 2>&1 curl -fsSL https://raw.githubusercontent.com/ivabus/ivabus-zsh-theme/master/ivabus.zsh-theme -o $HOME/.config/zsh/themes/ivabus.zsh-theme > /dev/null 2>&1
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $HOME/.dotfiles/zsh/plugins/zsh-syntax-highlighting > /dev/null 2>&1 git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $HOME/.config/zsh/plugins/zsh-syntax-highlighting > /dev/null 2>&1
# installing vimplug # installing vimplug
curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

View file

@ -6,8 +6,8 @@ if [ ! -d $HOME/.config ]; then
fi fi
chmod +x $HOME/.dotfiles/tools/* chmod +x $HOME/.dotfiles/tools/*
$HOME/.dotfiles/tools/relink.sh $HOME/.dotfiles/tools/relink.sh
mkdir -p $HOME/.dotfiles/zsh/{plugins,themes} mkdir -p $HOME/.config/zsh/{plugins,themes}
curl -fsSL https://raw.githubusercontent.com/ivabus/ivabus-zsh-theme/master/ivabus.zsh-theme -o $HOME/.dotfiles/zsh/themes/ivabus.zsh-theme curl -fsSL https://raw.githubusercontent.com/ivabus/ivabus-zsh-theme/master/ivabus.zsh-theme -o $HOME/.config/zsh/themes/ivabus.zsh-theme
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $HOME/.dotfiles/zsh/plugins/zsh-syntax-highlighting git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $HOME/.config/zsh/plugins/zsh-syntax-highlighting
curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
nvim -c :PlugInstall -c :q -c :q nvim -c :PlugInstall -c :q -c :q