Initial dotfiles and setup script
This commit is contained in:
parent
453a877281
commit
93d1cffc78
7 changed files with 254 additions and 89 deletions
13
setup
Normal file
13
setup
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue