snips/user.bash_aliases

45 lines
808 B
Plaintext

# --------------------------------
# Shell RC
# --------------------------------
if [ -f /etc/bash_completion.d/git-prompt ]; then
source /etc/bash_completion.d/git-prompt
fi
export GIT_PS1_SHOWDIRTYSTATE=1
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;92m\]$(hostname)\[\033[01;34m\] \w\[\033[01;35m\]$(__git_ps1 "  %s") \[\033[0m\]$ '
#
# Variables
#
export EDITOR=vim
export GOPATH=~/lang/go
export PATH=~/bin:~/apps/bin:$PATH:/usr/local/go/bin:$GOPATH/bin:/opt/i3/bin
#
# Aliases
#
alias ls='ls -altrh --color'
alias q=exit
alias a=clear
alias h=history
alias e=$EDITOR
#
# Functions
#
function myvim () {
gvim $1 >& /dev/null &
disown %1
}
function pyedit () {
gedit $1 >& /dev/null &
disown %1
}
function hgrep () {
history | grep $1
}
function pgrep () {
ps aux | grep $1
}