dotfiles/setup

16 lines
598 B
Text
Raw Normal View History

2024-06-13 23:03:12 -07:00
#!/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
2024-06-19 19:09:29 -07:00
[ -f ~/.dircolors ] && mv ~/.dircolors ~/.dircolors.bak
2024-06-13 23:03:12 -07:00
[ -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
2024-06-19 19:09:29 -07:00
[ -e ~/.dircolors ] || ln -s ~/.dotfiles/.dircolors ~/.dircolors