1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2025-06-18 05:06:38 +02:00

Possiblity of having special setups for hostnames

For .Bashrc aswell as generic .Profile
This commit is contained in:
Eric Teunis de Boone 2016-09-26 15:40:04 +02:00
parent 0fd6e855bf
commit 37123ca4cd
31 changed files with 3148 additions and 51 deletions

View file

@ -1,34 +0,0 @@
BASE="$HOME/.dotfiles"
BAKSUFFIX=".old"
symlink()
{
local COMMAND='ln -s '
[ $# -lt 2 ] && return 1
[ $# -gt 2 ] && [ "$3" = "-c" -o "$3" = "--copy" ] $COMMAND = 'echo "cp -r" '
if [ ! -h $2 ]; then
echo "MOVING mv \"$2\" \"$2$BAKSUFFIX\" "
fi
$COMMAND "$1" "$2"
}
# bash
symlink "${BASE}/bashrc" ~/.bashrc
symlink "${BASE}/bash_files/" ~/.bash_files
# vim
symlink "${BASE}/vimrc" ~/.vimrc
symlink "${BASE}/vim/" ~/.vim
# tmux
symlink "${BASE}/tmux.conf" ~/.tmux.conf
# ssh
symlink "${BASE}/ssh/" ~/.ssh