Link dotfiles after install
This commit is contained in:
parent
c089e5e61f
commit
9664de7208
20
install
20
install
@ -1,6 +1,17 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
sudo pacman -Sy \
|
link() {
|
||||||
|
[ -L "~/.config" ] || return 0
|
||||||
|
|
||||||
|
repo_dir=$(readlink -f $(dirname "$0"))
|
||||||
|
|
||||||
|
for file in ".profile" ".zprofile" ".config"; do
|
||||||
|
ln -sf "$repo_dir/$file" "~/$file"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
install() {
|
||||||
|
sudo pacman -S --needed \
|
||||||
abook \
|
abook \
|
||||||
alacritty \
|
alacritty \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
@ -42,3 +53,10 @@ sudo pacman -Sy \
|
|||||||
[ -d "/usr/share/zsh/plugins/zsh-vim-mode" ] || sudo git clone \
|
[ -d "/usr/share/zsh/plugins/zsh-vim-mode" ] || sudo git clone \
|
||||||
https://github.com/softmoth/zsh-vim-mode \
|
https://github.com/softmoth/zsh-vim-mode \
|
||||||
/usr/share/zsh/plugins/zsh-vim-mode
|
/usr/share/zsh/plugins/zsh-vim-mode
|
||||||
|
|
||||||
|
[ -d "/usr/share/themes/Nova" ] || sudo git clone \
|
||||||
|
https://git.vimium.com/jordan/gtk-nova-theme.git \
|
||||||
|
/usr/share/themes/Nova
|
||||||
|
}
|
||||||
|
|
||||||
|
install && link
|
||||||
|
Reference in New Issue
Block a user