also use .profile when linking
This commit is contained in:
parent
af3cb0b171
commit
30660d51d9
2 changed files with 14 additions and 34 deletions
|
|
@ -18,7 +18,7 @@ function user_config {
|
|||
mv $HOME/.bashrc $HOME/.bashrc.old
|
||||
echo "Old .bashrc moved to .bashrc.old"
|
||||
fi
|
||||
ln -s $SCRIPTPATH/{.bashrc,vim/.vimrc,tmux/.tmux.conf} $HOME/;
|
||||
ln -s $SCRIPTPATH/{.bashrc,vim/.vimrc,tmux/.tmux.conf,.profile} $HOME/;
|
||||
ln -s $SCRIPTPATH/vim/colors $HOME/.vim/
|
||||
echo 'Linking configuration files done'
|
||||
elif [[ "$USER" == "root" ]]; then
|
||||
|
|
@ -28,7 +28,7 @@ function user_config {
|
|||
mv /root/.bashrc /root/.bashrc.old
|
||||
echo "Old .bashrc moved to .bashrc.old"
|
||||
fi
|
||||
ln -s $SCRIPTPATH/{.bashrc,vim/.vimrc,tmux/.tmux.conf} /root/
|
||||
ln -s $SCRIPTPATH/{.bashrc,vim/.vimrc,tmux/.tmux.conf,.profile} /root/
|
||||
ln -s $SCRIPTPATH/vim/colors /root/.vim/
|
||||
echo 'Linking configuration files done'
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue