-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean things up, get a new slimmed down vimrc
Signed-off-by: Adam Miller <[email protected]>
- Loading branch information
1 parent
78f3a28
commit a2b81da
Showing
4 changed files
with
57 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,50 @@ | ||
#!/bin/bash | ||
|
||
# Ensure the needed dirs exist | ||
mkdir -p ~/.config/{dunst,i3,i3status,fontconfig} | ||
mkdir -p ~/.config/fontconfig/conf.d | ||
mkdir ~/.tmuxinator | ||
mkdir ~/.ptpython | ||
mkdir ~/.fonts | ||
mkdir ~/.ssh/ | ||
mkdir_if_needed() { | ||
if [[ ! -d $1 ]]; then | ||
mkdir -p $1 | ||
fi | ||
} | ||
|
||
mkdir_if_needed ~/.config/{dunst,i3,i3status,fontconfig} | ||
mkdir_if_needed ~/.config/fontconfig/conf.d | ||
mkdir_if_needed ~/.tmuxinator | ||
mkdir_if_needed ~/.ptpython | ||
mkdir_if_needed ~/.fonts | ||
mkdir_if_needed ~/.ssh | ||
mkdir_if_needed ~/.vimundo | ||
|
||
# Symlink the conf files | ||
ln -s ~/dotfiles/snclirc ~/.snclirc | ||
ln -s ~/dotfiles/dunstrc ~/.config/dunst/dunstrc | ||
ln -s ~/dotfiles/i3-config ~/.config/i3/config | ||
ln -s ~/dotfiles/i3status-config ~/.config/i3status/config | ||
ln -s ~/dotfiles/redshift.conf ~/.config/redshift.conf | ||
ln -s ~/dotfiles/tmux.conf ~/.tmux.conf | ||
ln -s ~/dotfiles/tmuxinator-wm.yml ~/.tmuxinator/wm.yml | ||
ln -s ~/dotfiles/screenrc ~/.screenrc | ||
ln -s ~/dotfiles/gitconfig ~/.gitconfig | ||
ln -s ~/dotfiles/inputrc ~/.inputrc | ||
ln -s ~/dotfiles/ptpython_config.py ~/.ptpython/config.py | ||
ln -s ~/dotfiles/ssh_config ~/.ssh/config | ||
ln -s ~/dotfiles/Xresources ~/.Xresources | ||
ln -s ~/dotfiles/bashrc ~/.bashrc | ||
symlink_if_needed() { | ||
if [[ ! -h $2 ]]; then | ||
ln -s $1 $2 | ||
fi | ||
} | ||
symlink_if_needed ~/dotfiles/snclirc ~/.snclirc | ||
symlink_if_needed ~/dotfiles/dunstrc ~/.config/dunst/dunstrc | ||
symlink_if_needed ~/dotfiles/i3-config ~/.config/i3/config | ||
symlink_if_needed ~/dotfiles/i3status-config ~/.config/i3status/config | ||
symlink_if_needed ~/dotfiles/redshift.conf ~/.config/redshift.conf | ||
symlink_if_needed ~/dotfiles/tmux.conf ~/.tmux.conf | ||
symlink_if_needed ~/dotfiles/tmuxinator-wm.yml ~/.tmuxinator/wm.yml | ||
symlink_if_needed ~/dotfiles/screenrc ~/.screenrc | ||
symlink_if_needed ~/dotfiles/gitconfig ~/.gitconfig | ||
symlink_if_needed ~/dotfiles/inputrc ~/.inputrc | ||
symlink_if_needed ~/dotfiles/ptpython_config.py ~/.ptpython/config.py | ||
symlink_if_needed ~/dotfiles/ssh_config ~/.ssh/config | ||
symlink_if_needed ~/dotfiles/Xresources ~/.Xresources | ||
symlink_if_needed ~/dotfiles/bashrc ~/.bashrc | ||
symlink_if_needed ~/dotfiles/vimrc ~/.vimrc | ||
|
||
if [[ ! -f ~/.vim/autoload/plug.vim ]]; then | ||
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | ||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim; | ||
vim +PlugInstall! +qall | ||
fi | ||
|
||
# This doesn't appear to be necessary, but keep it around just in case | ||
#ln -s ~/dotfiles/sshrc ~/.ssh/rc | ||
#link_if_needed ~/dotfiles/sshrc ~/.ssh/rc | ||
|
||
# Set perms on ~/.ssh/config | ||
chmod 0600 ~/dotfiles/ssh_config | ||
restorecon -Rvv ~/.ssh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters