13 lines
477 B
Bash
13 lines
477 B
Bash
#!/bin/sh
|
|
|
|
# Backup any existing dotfiles
|
|
[ -f ~/.bashrc ] && mv ~/.bashrc ~/.bashrc.bak
|
|
[ -f ~/.nanorc ] && mv ~/.nanorc ~/.nanorc.bak
|
|
[ -f ~/.tmux.conf ] && mv ~/.tmux.conf ~/.tmux.conf.bak
|
|
[ -d ~/.tmux ] && mv ~/.tmux ~/.tmux.bak
|
|
|
|
# Link dotfiles
|
|
[ -e ~/.tmux.conf ] || ln -s ~/.dotfiles/.tmux.conf ~/.tmux.conf
|
|
[ -e ~/.bashrc ] || ln -s ~/.dotfiles/.bashrc ~/.bashrc
|
|
[ -e ~/.nanorc ] || ln -s ~/.dotfiles/.nanorc ~/.nanorc
|
|
[ -e ~/.tmux ] || ln -s ~/.dotfiles/.tmux ~/.tmux
|