Last active
February 22, 2019 17:55
-
-
Save nshenry03/6de76892df48cac6e8dfd543dad26412 to your computer and use it in GitHub Desktop.
Bash configuration files
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
--ignore-dir=.kitchen | |
--ignore-dir=.terraform | |
--type-set=terraform:ext:tf | |
--type-set=terraformstate:match:/tfstate/ |
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
alias diff='diff --color=auto' | |
alias ll='ls -lF --color=auto' | |
# Add an "alert" alias for long running commands. Use like so: | |
# sleep 10; alert | |
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' |
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
export CDPATH=".:${HOME}/Repositories:" | |
export EDITOR='vim' | |
export MYSQL_HISTFILE=/dev/null | |
export HISTCONTROL=ignoreboth | |
export HISTSIZE=100000 | |
export HISTFILESIZE=200000 | |
export PASSWORD_STORE_GPG_OPTS='--no-throw-keyids' | |
export GPG_TTY="$(tty)" | |
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" | |
export TF_VAR_user="${USER}" | |
if [[ -d "${HOME}/go" ]] | |
then | |
export GOPATH="${HOME}/go" | |
export PATH="${PATH}:$(go env GOPATH)/bin" | |
fi |
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
[[ -f "${HOME}/.bashrc" ]] && . ~/.bashrc | |
for bin in "${HOME}/.local/bin" "${HOME}/bin" '/snap/bin' | |
do | |
[[ -d "${bin}" ]] && export PATH=${PATH}:${bin} | |
done | |
[[ -d "${HOME}/.vim.backupdir" ]] \ | |
&& find ${HOME}/.vim.backupdir -name "*" -type f -mtime +60 -exec rm -f {} \; | |
[[ -d "${HOME}/.vim.swapdir" ]] \ | |
&& find ${HOME}/.vim.swapdir -name "*" -type f -mtime +60 -exec rm -f {} \; |
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
# Enable Bash's vi Mode | |
set -o vi | |
[[ -f /etc/bashrc ]] && . /etc/bashrc | |
[[ -f ${HOME}/.bash_aliases ]] && . ${HOME}/.bash_aliases | |
[[ -f ${HOME}/.bash_exports ]] && . ${HOME}/.bash_exports | |
[[ -r ${HOME}/.byobu/prompt ]] && . ${HOME}/.byobu/prompt | |
which chef >/dev/null 2>&1 && eval "$(chef shell-init bash)" | |
# Stop screen from clobbering titles | |
unset PROMPT_COMMAND | |
gpgconf --launch gpg-agent |
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 controls the behaviour of line input editing for | |
# programs that use the GNU Readline library. Existing | |
# programs include FTP, Bash, and GDB. | |
# | |
# You can re-read the inputrc file with C-x C-r. | |
# Lines beginning with '#' are comments. | |
# | |
# First, include any systemwide bindings and variable | |
# assignments from /etc/Inputrc | |
$include /etc/Inputrc | |
# | |
# Set various bindings for vi mode. | |
set editing-mode vi | |
$if mode=vi | |
set keymap vi-command | |
# these are for vi-command mode | |
Control-l: clear-screen | |
set keymap vi-insert | |
# these are for vi-insert mode | |
Control-l: clear-screen | |
$endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment