Start up script
This commit is contained in:
parent
bf566dc648
commit
b9793bc5f1
1 changed files with 32 additions and 0 deletions
32
initialize_script
Executable file
32
initialize_script
Executable file
|
|
@ -0,0 +1,32 @@
|
||||||
|
#!/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
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue