Clean up shell

This commit is contained in:
Jake Howard 2017-10-08 19:27:15 +01:00
parent 253692d500
commit 1bf5da182a
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 1 additions and 17 deletions

View file

@ -8,9 +8,6 @@ export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)" eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)" eval "$(pyenv virtualenv-init -)"
[ -s "/usr/share/autoenv-git/activate.sh" ] && source /usr/share/autoenv-git/activate.sh
# git aliases # git aliases
alias gs="git status" alias gs="git status"
alias gd="git diff" alias gd="git diff"
@ -38,12 +35,8 @@ gd-unlock() {
alias gdl="gd-lock" alias gdl="gd-lock"
alias gdu="gd-unlock" alias gdu="gd-unlock"
alias y="yoga"
alias ym="yoga mode"
# miscellaneous software aliases # miscellaneous software aliases
alias serve="python2 -m SimpleHTTPServer" alias serve="/usr/bin/python2 -m SimpleHTTPServer"
alias vi="vim" alias vi="vim"
alias regen-ssh-conf="assh config build > ~/.ssh/config" alias regen-ssh-conf="assh config build > ~/.ssh/config"
alias yolo="yaourt -Syyau --noconfirm" alias yolo="yaourt -Syyau --noconfirm"

View file

@ -4,14 +4,12 @@ case $- in
*) return;; *) return;;
esac esac
# Export some variables # Export some variables
export ANDROID_HOME=/opt/android-sdk export ANDROID_HOME=/opt/android-sdk
export EDITOR=/bin/nano export EDITOR=/bin/nano
export TIMEFMT=$'\nreal\t%E\nuser\t%U\nsys\t%S' export TIMEFMT=$'\nreal\t%E\nuser\t%U\nsys\t%S'
export DOTFILES=~/.dotfiles export DOTFILES=~/.dotfiles
# Extend path # Extend path
export PATH=${PATH}:${ANDROID_HOME}/tools export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools export PATH=${PATH}:${ANDROID_HOME}/platform-tools
@ -21,21 +19,14 @@ export PATH=${PATH}:${HOME}/.bin
# bash aliases # bash aliases
alias refresh="cd $PWD > /dev/null" alias refresh="cd $PWD > /dev/null"
alias c="clear" alias c="clear"
alias cls="clear"
alias e="exit" alias e="exit"
alias please="sudo"
alias no="yes n" alias no="yes n"
alias drugs="yes no"
alias open="xdg-open" alias open="xdg-open"
alias browse "xdg-open ." alias browse "xdg-open ."
# colourify things! # colourify things!
alias ls='ls --color=auto' alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto' alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'