32 lines
628 B
Bash
Executable file
32 lines
628 B
Bash
Executable file
#!/bin/bash
|
|
# Setup script for vim & tmux
|
|
echo -n 'Systemwide or user specific configuration? [s/u]'
|
|
read FUNCTION
|
|
|
|
if ['$FUNCTION' == 's'] ;then
|
|
system_wide
|
|
elif ['$FUNCTION' == 'u'] ;then
|
|
user_config
|
|
fi
|
|
|
|
echo -n 'Extra fonts? [y/n]'
|
|
read FONTS
|
|
|
|
if ['$FONTS' == 'y'] ;then
|
|
powerline_fonts
|
|
fi
|
|
|
|
function system_wide {
|
|
ln -s vim/.vimrc /etc/vim/vimrc;
|
|
ln -s tmux/.tmux.conf /etc/tmux.conf;
|
|
}
|
|
|
|
function user_config {
|
|
ln -s vim/.vimrc $HOME/;
|
|
ln -s tmux/.tmux.conf $HOME/;
|
|
}
|
|
|
|
function powerline_fonts {
|
|
git clone https://github.com/powerline/fonts.git $HOME/.fonts
|
|
./$HOME/.fonts/install.sh
|
|
}
|