dotfiles/bash/bashrc.wip

55 lines
1.6 KiB
Text
Raw Normal View History

2017-07-05 18:43:45 +00:00
#-----------------------------------------------------------------------------#
# General Bash Configuration File ## source ~/.bashrc ## niblock ##
#-----------------------------------------------------------------------------#
2015-09-07 02:04:45 +00:00
# Source global definitions
if [ -f /etc/bashrc ]; then
2017-07-05 18:43:45 +00:00
. /etc/bashrc
2015-09-07 02:04:45 +00:00
fi
2017-07-05 18:43:45 +00:00
#-----------------------------------------------------------------------------#
# Prompt
#-----------------------------------------------------------------------------#
2015-10-27 22:21:59 +00:00
2017-01-28 01:52:36 +00:00
2017-07-05 18:43:45 +00:00
#-----------------------------------------------------------------------------#
2015-09-07 02:04:45 +00:00
# Aliases
2017-07-05 18:43:45 +00:00
#-----------------------------------------------------------------------------#
2015-09-07 02:04:45 +00:00
2017-07-05 18:43:45 +00:00
alias tssh="source ~/.ssh/auth_ssh; ssh -A"
complete -F _ssh tssh
2015-09-07 02:04:45 +00:00
2017-07-05 18:43:45 +00:00
#-----------------------------------------------------------------------------#
2015-09-07 02:04:45 +00:00
# Functions
2017-07-05 18:43:45 +00:00
#-----------------------------------------------------------------------------#
2015-09-07 02:04:45 +00:00
#If redshift wasn't automatically started, this will do it
function tint(){
2017-07-05 18:43:45 +00:00
redshift -l 42.8864500:-78.8783700 -t 5000:4000 &
2015-09-07 02:04:45 +00:00
}
2017-07-05 18:43:45 +00:00
# Function for keeping ssh-agent happy
function yssh(){
echo "export SSH_AUTH_SOCK=$SSH_AUTH_SOCK" > ~/.ssh/auth_ssh
2015-09-07 02:04:45 +00:00
}
2017-01-28 01:52:36 +00:00
2017-07-05 18:43:45 +00:00
#-----------------------------------------------------------------------------#
# Path
#-----------------------------------------------------------------------------#
# Ruby Gems
if which ruby >/dev/null && which gem >/dev/null; then
PATH="$(ruby -rubygems -e 'puts Gem.user_dir')/bin:$PATH"
fi
# RVM
PATH="$HOME/.rvm/bin:$PATH"
# Add Python projects to path
PYTHONPATH="${PYTHONPATH}:/home/niblock/Lab/gomez_audit"
export PYTHONPATH
export PATH
export SSH_AUTH_SOCK=$HOME/.yubiagent/sock