Skip to content

Commit

Permalink
bashrc additions
Browse files Browse the repository at this point in the history
  • Loading branch information
ajashton committed May 29, 2016
1 parent 0fa9f1c commit 24d81ba
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .bash/bashrc.global
Expand Up @@ -19,6 +19,10 @@ if [[ -d "$HOME/.gem/ruby/2.3.0/bin" ]]; then
PATH="$HOME/.gem/ruby/2.3.0/bin:$PATH"
fi

if [[ -e "$HOME/.python/bin/activate" ]]; then
source "$HOME/.python/bin/activate"
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ]; then
PATH="$HOME/bin:$PATH"
Expand Down Expand Up @@ -85,6 +89,7 @@ alias vi='vim'
# ---- Preferred Default Options --------------------------------------

alias df='df -h'
alias gist='gist -p'
alias grep='grep --color=auto'
alias mkdir='mkdir -p'
alias mv='mv -vi'
Expand Down Expand Up @@ -114,6 +119,12 @@ alias ......='cd ../../../../..'

alias otf2ttf="fontforge -script $HOME/bin/otf2ttf.sh"

function bak() {
for file in "$@"; do
mv "$file"{,.bak}
done
}

# Follow copied and moved files to destination directory (courtesy jwr)
follow() { [ -d "$1" ] && cd "$1" || cd "$(dirname "$1")"; }
cpf() { cp "$@" && follow "$_"; }
Expand Down Expand Up @@ -155,4 +166,3 @@ function xt() {
echo "'$1' is not a valid file"
fi
}

6 changes: 6 additions & 0 deletions .bash/bashrc.gnu
@@ -1,5 +1,11 @@
# For things that only make sense on GNU/Linux systems

export GDK_BACKEND='wayland,x11'

if [[ -n "$(which keychain)" ]]; then
eval $(keychain --eval --quiet --noask id_rsa)
fi


# == ALIASES ==========================================================

Expand Down

0 comments on commit 24d81ba

Please sign in to comment.