Made install script check if the files exitst before installing them
This commit is contained in:
parent
51281ee3af
commit
fdf77315d8
24
install.sh
24
install.sh
|
@ -4,12 +4,20 @@ if [ $EUID != 0 ]; then
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ln -s ~/.dotfiles/tmux.conf ~/.tmux.conf
|
if [ ! -f ~/.tmux.conf ]; then ln -s ~/.dotfiles/tmux.conf ~/.tmux.conf; fi
|
||||||
ln -s ~/.dotfiles/zshrc ~/.zshrc
|
if [ ! -f ~/.zshrc ]; then ln -s ~/.dotfiles/zshrc ~/.zshrc; fi
|
||||||
ln -s ~/.dotfiles/oh-my-zsh ~/.oh-my-zsh
|
if [ ! -f ~/.vimrc ]; then ln -s ~/.dotfiles/vimrc ~/.vimrc; fi
|
||||||
ln -s ~/.dotfiles/vimrc ~/.vimrc
|
if [ ! -d ~/.vim ]; then ln -s ~/.dotfiles/vim ~/.vim; fi
|
||||||
ln -s ~/.dotfiles/vim ~/.vim
|
if [ ! -f ~/.gitignore ]; then ln -s ~/.dotfiles/gitignore ~/.gitignore; fi
|
||||||
ln -s ~/.dotfiles/gitignore ~/.gitignore
|
|
||||||
|
|
||||||
curl -fsSL https://raw.github.com/mislav/dotfiles/1500cd2/bin/tmux-vim-select-pane -o /usr/local/bin/tmux-vim-select-pane
|
#ln -s ~/.dotfiles/zshrc ~/.zshrc
|
||||||
chmod +x /usr/local/bin/tmux-vim-select-pane
|
#ln -s ~/.dotfiles/vimrc ~/.vimrc
|
||||||
|
#ln -s ~/.dotfiles/vim ~/.vim
|
||||||
|
#ln -s ~/.dotfiles/gitignore ~/.gitignore
|
||||||
|
|
||||||
|
if [ ! -f /usr/local/bin/tmux-vim-select-pane ]; then
|
||||||
|
curl -fsSL https://raw.github.com/mislav/dotfiles/1500cd2/bin/tmux-vim-select-pane -o /usr/local/bin/tmux-vim-select-pane;
|
||||||
|
chmod +x /usr/local/bin/tmux-vim-select-pane;
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Done installing..."
|
||||||
|
|
4
zshrc
4
zshrc
|
@ -1,11 +1,11 @@
|
||||||
# Path to your oh-my-zsh configuration.
|
# Path to your oh-my-zsh configuration.
|
||||||
ZSH=/home/tim/.oh-my-zsh
|
ZSH=~/.dotfiles/oh-my-zsh
|
||||||
|
|
||||||
# Set name of the theme to load.
|
# Set name of the theme to load.
|
||||||
# Look in ~/.oh-my-zsh/themes/
|
# Look in ~/.oh-my-zsh/themes/
|
||||||
# Optionally, if you set this to "random", it'll load a random theme each
|
# Optionally, if you set this to "random", it'll load a random theme each
|
||||||
# time that oh-my-zsh is loaded.
|
# time that oh-my-zsh is loaded.
|
||||||
ZSH_THEME="dx"
|
ZSH_THEME="example"
|
||||||
|
|
||||||
# Example aliases
|
# Example aliases
|
||||||
# alias zshconfig="mate ~/.zshrc"
|
# alias zshconfig="mate ~/.zshrc"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user