Some minor cleanup changes.

This commit is contained in:
Jeff Geerling
2018-02-17 17:25:25 -06:00
parent 08eed0faaa
commit f3ee4515a0
+7 -23
View File
@@ -27,22 +27,6 @@ then
source ~/.bashrc source ~/.bashrc
fi fi
# Route local traffic over ethernet when using certain WiFi networks w/o proxy.
function route_add() {
sudo route add -net 10.0.0.0/8 -interface en0
}
# Delete the route added above.
function route_delete() {
sudo route delete 10.0.0.0
}
# Route IRC traffic through one of my servers.
# Use SOCKS5 settings 'localhost' and 6667 for server/port.
function irc_proxy() {
ssh -vD 6667 geerlingguy@atl1.servercheck.in
}
# Syntax-highlight code for copying and pasting. # Syntax-highlight code for copying and pasting.
# Requires highlight (`brew install highlight`). # Requires highlight (`brew install highlight`).
function pretty() { function pretty() {
@@ -55,8 +39,6 @@ alias gc='git commit'
alias gp='git pull --rebase' alias gp='git pull --rebase'
alias gcam='git commit -am' alias gcam='git commit -am'
alias gl='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit' alias gl='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit'
alias gsd='git svn dcommit'
alias gsfr='git svn fetch && git svn rebase'
# Git upstream branch syncer. # Git upstream branch syncer.
# Usage: gsync master (checks out master, pull upstream, push origin). # Usage: gsync master (checks out master, pull upstream, push origin).
@@ -77,6 +59,9 @@ function gsync() {
git push origin "$1" git push origin "$1"
} }
# Tell homebrew to not autoupdate every single time I run it (just once a week).
export HOMEBREW_AUTO_UPDATE_SECS=604800
# Turn on Git autocomplete. # Turn on Git autocomplete.
# brew_prefix=`brew --prefix` # brew_prefix=`brew --prefix`
brew_prefix='/usr/local' brew_prefix='/usr/local'
@@ -92,15 +77,15 @@ export PATH="$brew_prefix/opt/php70/bin:$PATH"
# . "$brew_prefix/opt/nvm/nvm.sh" # . "$brew_prefix/opt/nvm/nvm.sh"
# Use rbenv. # Use rbenv.
if [ -f /usr/local/bin/rbenv ]; then # if [ -f /usr/local/bin/rbenv ]; then
eval "$(rbenv init -)" # eval "$(rbenv init -)"
fi # fi
# Python settings. # Python settings.
export PYTHONPATH="/usr/local/lib/python2.7/site-packages" export PYTHONPATH="/usr/local/lib/python2.7/site-packages"
# Super useful Docker container oneshots. # Super useful Docker container oneshots.
# Usage: dockrun, or dockrun [centos7|fedora24|debian8|ubuntu1404|etc.] # Usage: dockrun, or dockrun [centos7|fedora27|debian9|debian8|ubuntu1404|etc.]
dockrun() { dockrun() {
docker run -it geerlingguy/docker-"${1:-ubuntu1604}"-ansible /bin/bash docker run -it geerlingguy/docker-"${1:-ubuntu1604}"-ansible /bin/bash
} }
@@ -160,4 +145,3 @@ function blt() {
return 1 return 1
fi fi
} }