Remove readline
This commit is contained in:
parent
f62da8e874
commit
b65ffc51f3
1 changed files with 7 additions and 24 deletions
|
|
@ -1,29 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Setup script for vim & tmux
|
# Setup script for vim & tmux
|
||||||
|
|
||||||
function get_path {
|
# Get the full path of the script
|
||||||
# Get the full path of a file
|
SCRIPT_PATH=`realpath $0`
|
||||||
SCRIPT=`realpath $0`
|
|
||||||
# Remove everything but the filename
|
|
||||||
SCRIPTPATH=`dirname $SCRIPT`
|
|
||||||
}
|
|
||||||
|
|
||||||
read -p 'Install the script for a normal user or root account? [user/root]: ' USER
|
# Remove the filename
|
||||||
|
DOTFILES=`dirname $SCRIPT`
|
||||||
|
|
||||||
if [[ "$USER" == "user" ]]; then
|
|
||||||
get_path
|
|
||||||
mkdir $HOME/.vim
|
mkdir $HOME/.vim
|
||||||
ln -sf $SCRIPTPATH/{.bashrc,vim/.vimrc,.tmux.conf,.profile} $HOME/;
|
ln -sf $DOTFILES/{.bashrc,vim/.vimrc,.tmux.conf,.profile} $HOME/
|
||||||
ln -sf $SCRIPTPATH/vim/colors $HOME/.vim/
|
ln -sf $DOTFILES/vim/colors $HOME/.vim/
|
||||||
echo 'Linking configuration files done'
|
|
||||||
elif [[ "$USER" == "root" ]]; then
|
|
||||||
get_path
|
|
||||||
mkdir /root/.vim
|
|
||||||
ln -sf $SCRIPTPATH/{.bashrc,vim/.vimrc,.tmux.conf,.profile} /root/
|
|
||||||
ln -sf $SCRIPTPATH/vim/colors /root/.vim/
|
|
||||||
echo 'Linking configuration files done'
|
|
||||||
else
|
|
||||||
echo 'No selection was made'
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue