rename install to installrc
This commit is contained in:
57
installrc
Normal file
57
installrc
Normal file
@@ -0,0 +1,57 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# install dotfiles
|
||||
dotfiles=(
|
||||
bash_profile
|
||||
bashrc
|
||||
config
|
||||
gitconfig
|
||||
htoprc
|
||||
screenrc
|
||||
tmux.conf
|
||||
vimrc
|
||||
vim
|
||||
xinitrc
|
||||
Xresources
|
||||
)
|
||||
for f in "${dotfiles[@]}"; do
|
||||
# don't cp pkgs directory over
|
||||
if [ "$f" == "pkgs" ]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
# merge directories if already exists
|
||||
if [ -d ~/.$f ]; then
|
||||
echo "directory $f detected. merging..."
|
||||
cp -rv $f/* ~/.$f/
|
||||
else
|
||||
cp -rv $f ~/."$f"
|
||||
fi
|
||||
done
|
||||
|
||||
# install packages
|
||||
packages=(
|
||||
arandr
|
||||
i3
|
||||
i3lock
|
||||
fzf
|
||||
git
|
||||
hsetroot
|
||||
playerctl
|
||||
ranger
|
||||
redshift-gtk
|
||||
rofi
|
||||
rxvt-unicode
|
||||
scrot
|
||||
ssh
|
||||
suckless-tools
|
||||
thunar
|
||||
x11-xserver-utils # for xrandr
|
||||
xsel
|
||||
vim
|
||||
cmus
|
||||
fish
|
||||
)
|
||||
sudo dpkg -i ./pkgs/*.deb
|
||||
sudo apt install -y ${packages[@]}
|
||||
vim '+PlugInstall --sync' +qa
|
||||
Reference in New Issue
Block a user