Created
August 24, 2014 05:50
-
-
Save milesrout/f4cb1df6ace38f4d32cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# ~/.bashrc | |
# | |
# If not running interactively, don't do anything | |
[[ $- != *i* ]] && return | |
alias ls='ls --color=auto' | |
# Play a directory | |
alias mplaydir='mplayer -playlist <(find "$PWD" -type f | sort -t '\0' -n)' | |
# Alsamixer | |
alias am=alsamixer | |
# Screen Rotation | |
alias bgportal='feh --bg-scale ~/wallpapers/portal.jpg --no-xinerama' | |
alias bgspace='feh --bg-scale ~/wallpapers/nuukeer.jpg --no-xinerama' | |
alias bgbad='feh --bg-scale ~/wallpapers/breakingbad.jpg --no-xinerama' | |
alias xrleft='xrandr -o left && xrandr --output DVI-D-0 --auto --output DVI-I-1 --auto --left-of DVI-D-0 && bgspace' | |
alias xrnormal='xrandr -o normal && xrandr --output DVI-D-0 --auto --output DVI-I-1 --auto --left-of DVI-D-0 && bgportal' | |
# Coloured pacman | |
alias pacman='pacman --color always' | |
# Coloured man pages. | |
man() { | |
env LESS_TERMCAP_mb=$'\E[01;31m' \ | |
LESS_TERMCAP_md=$'\E[01;38;5;74m' \ | |
LESS_TERMCAP_me=$'\E[0m' \ | |
LESS_TERMCAP_se=$'\E[0m' \ | |
LESS_TERMCAP_so=$'\E[38;5;246m' \ | |
LESS_TERMCAP_ue=$'\E[0m' \ | |
LESS_TERMCAP_us=$'\E[04;38;5;146m' \ | |
man "$@" | |
} | |
# Add personal binary directory to path | |
export PATH=$PATH:$HOME/bin | |
# Coloured gcc output | |
export GCC_COLORS=`true` | |
# Git prompt | |
export GIT_PS1_SHOWDIRTYSTATE=true | |
export GIT_PS1_SHOWSTASHSTATE=true | |
export GIT_PS1_SHOWUNTRACKEDFILES=true | |
export GIT_PS1_SHOWUPSTREAM=auto | |
source /usr/share/git/completion/git-prompt.sh | |
PS1='\[\e]0;\u@\h\a\]\[\e[1;32m\]\u\[\e[0m\]@\[\e[1;34m\]\h\[\e[0m\]:\w$(__git_ps1 " (%s)") \$ \[\e[0;37m\]' | |
trap 'echo -ne "\e[0m"' DEBUG | |
source ~/.rvm/scripts/rvm | |
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment