This commit is contained in:
parent
dd9a54dc8b
commit
3d56d80c18
@ -17,7 +17,7 @@ shopt -s histappend
|
|||||||
shopt -s cdspell
|
shopt -s cdspell
|
||||||
|
|
||||||
# solarized directory color listings
|
# solarized directory color listings
|
||||||
eval `dircolors $HOME/.dir_colors`
|
# eval `dircolors $HOME/.dir_colors`
|
||||||
|
|
||||||
# tmuxifier
|
# tmuxifier
|
||||||
eval "$(starship init bash)"
|
# eval "$(starship init bash)"
|
||||||
|
@ -44,8 +44,7 @@ fi
|
|||||||
# work around for fzf
|
# work around for fzf
|
||||||
set -o vi
|
set -o vi
|
||||||
|
|
||||||
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
eval "$(fzf --bash)"
|
||||||
|
|
||||||
# tmuxifier
|
# tmuxifier
|
||||||
eval "$(tmuxifier init -)"
|
eval "$(tmuxifier init -)"
|
||||||
|
|
||||||
|
15
install.sh
15
install.sh
@ -20,11 +20,13 @@ if [[ -f /etc/os-release ]]; then
|
|||||||
echo "Running on debian-family.."
|
echo "Running on debian-family.."
|
||||||
package_manager=apt
|
package_manager=apt
|
||||||
vim="vim-nox"
|
vim="vim-nox"
|
||||||
|
ansible="ansible"
|
||||||
;;
|
;;
|
||||||
fedora)
|
fedora)
|
||||||
echo "Running on debian-family.."
|
echo "Running on rpm-family.."
|
||||||
package_manager=fedora
|
package_manager=dnf
|
||||||
vim="vim-enhanced"
|
vim="vim-enhanced"
|
||||||
|
ansible="ansible-core"
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
echo "You are running an unrecognized family of os. Quitting..."
|
echo "You are running an unrecognized family of os. Quitting..."
|
||||||
@ -34,10 +36,12 @@ fi
|
|||||||
# could have used a case, but i prefer the if statement
|
# could have used a case, but i prefer the if statement
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
echo "Installing packages"
|
echo "Installing packages"
|
||||||
sudo "$package_manager" install -y "$vim" git stow curl ranger tmux
|
sudo "$package_manager" install -y "$vim" git stow curl ranger tmux "$ansible"
|
||||||
|
|
||||||
|
# backup current configs
|
||||||
|
mv ~/.bashrc ~/.bashrc.bak;mv ~/.bash_profile ~/.bash_profile.bak
|
||||||
# use gnu stow to symlink config files to home directory
|
# use gnu stow to symlink config files to home directory
|
||||||
stow bash git ranger shellenv tmux vim
|
stow bash ranger shellenv tmux vim
|
||||||
|
|
||||||
elif [[ undo = "$1" ]]; then
|
elif [[ undo = "$1" ]]; then
|
||||||
echo "undoing"
|
echo "undoing"
|
||||||
@ -52,4 +56,5 @@ elif [[ "$1" = "help" ]]; then
|
|||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# extras for tmux
|
||||||
|
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||||
|
@ -14,3 +14,7 @@ pdfmerge() {
|
|||||||
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTTINGS=/prepress\
|
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTTINGS=/prepress\
|
||||||
-sOutputFile=$@ ;
|
-sOutputFile=$@ ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
apdoc () {
|
||||||
|
ansible-doc $1 | grep EXAMPLES -A 100 | less
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user