Fix install script

This commit is contained in:
Jordan Holt 2022-01-02 15:17:58 +00:00
parent 31bf022045
commit 7ccbcf80ba
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520

View File

@ -3,10 +3,10 @@
repo_dir=$(readlink -f $(dirname "$0")) repo_dir=$(readlink -f $(dirname "$0"))
link() { link() {
[ -L "~/.config" ] || return 0 [ -L "$HOME/.config" ] && return 0
for file in ".profile" ".zprofile" ".config"; do for file in ".profile" ".zprofile" ".config"; do
ln -sf "$repo_dir/$file" "~/$file" ln -sf "$repo_dir/$file" "$HOME/$file"
done done
source ~/.profile source ~/.profile
@ -38,11 +38,9 @@ install() {
pass \ pass \
pass-otp \ pass-otp \
playerctl \ playerctl \
pulseaudio \
python \ python \
python-pip \ python-pip \
python-neovim \ python-neovim \
qt-wayland \
rsync \ rsync \
slurp \ slurp \
sway \ sway \
@ -58,7 +56,7 @@ install() {
zsh-history-substring-search zsh-history-substring-search
[ -d "/usr/share/zsh/plugins/fast-syntax-highlighting" ] || sudo git clone \ [ -d "/usr/share/zsh/plugins/fast-syntax-highlighting" ] || sudo git clone \
https://github.com/zdharma/fast-syntax-highlighting \ https://github.com/zdharma-continuum/fast-syntax-highlighting \
/usr/share/zsh/plugins/fast-syntax-highlighting /usr/share/zsh/plugins/fast-syntax-highlighting
[ -d "/usr/share/zsh/plugins/zsh-vim-mode" ] || sudo git clone \ [ -d "/usr/share/zsh/plugins/zsh-vim-mode" ] || sudo git clone \