snips/user.bash_aliases

48 lines
817 B
Plaintext
Raw Normal View History

2019-08-17 03:06:22 +00:00
# --------------------------------
# Shell RC
# --------------------------------
2019-08-23 05:37:36 +00:00
if [ -f /etc/bash_completion.d/git-prompt ]; then
source /etc/bash_completion.d/git-prompt
fi
2019-11-18 15:31:43 +00:00
if [ -f ~/git-prompt.sh ]; then
source ~/git-prompt.sh
fi
2019-08-17 03:06:22 +00:00
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
2021-03-09 03:19:16 +00:00
export PATH=~/bin:$PATH
2019-08-17 03:06:22 +00:00
#
# 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
}