Created
May 22, 2011 20:05
-
-
Save okor/985834 to your computer and use it in GitHub Desktop.
okor-bashrc
This file contains 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: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
if [[ -n "$PS1" ]] ; then | |
#################################################################################################### | |
# History ########################################################################################## | |
#################################################################################################### | |
shopt -s histappend | |
HISTSIZE=100000 | |
HISTFILESIZE=200000 | |
# | |
#################################################################################################### | |
# PS1 line ######################################################################################### | |
#################################################################################################### | |
if [ $UID -eq 0 ]; then | |
PS1='\[\e[0;31m\]@\h\[\e[1;31m\] \W \$\[\e[;0m\] ' | |
else | |
PS1='\[\e[1;37m\]\u\[\e[0;37m\]@\h\[\e[1;35m\] \W \$\[\e[;0m\] ' | |
fi | |
# | |
#################################################################################################### | |
# Alias's ########################################################################################## | |
#################################################################################################### | |
alias ls='ls --color=auto' | |
alias ll='ls -alF' | |
alias la='ls -A' | |
alias l='ls -CF' | |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias egrep='egrep --color=auto' | |
alias xterm='xterm -font -*-fixed-medium-r-*-*-14-*-*-*-*-*-iso8859-* -geometry 70x24' | |
alias nautilus='nautilus --no-desktop' | |
alias g='gedit' | |
alias sl='ls' | |
# alias ffmpeg='/home/jason/opus_tools/programs/ffmpeg/bin/ffmpeg' | |
alias yamdi='/home/jason/opus_tools/programs/yamdi-1.5/yamdi' | |
alias untarded='ruby ~/Projects/ARCHIVE/untarded/untarded.rb' | |
alias gnome-terminal='gnome-terminal --geometry=100x34+300+200' | |
alias skype='export XLIB_SKIP_ARGB_VISUALS=1 && skype' | |
alias nano='nano -$' | |
alias explode='mplayer -fs -zoom ~/.explode/ex.mp4' | |
# | |
#################################################################################################### | |
# Exports ########################################################################################## | |
#################################################################################################### | |
export PATH=/sbin:$PATH | |
# export PATH=$PATH:$HOME/opus_tools/programs/ffmpeg/bin:$HOME/opus_tools/programs/melt/bin | |
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/opus_tools/programs/melt/lib | |
# export FFMPEG_DATADIR=$HOME/opus_tools/programs/ffmpeg/share/ffmpeg | |
# export PATH=$HOME/.local/programs/bin:$PATH | |
# | |
#################################################################################################### | |
# For rvm & ruby paths ############################################################################# | |
#################################################################################################### | |
fi | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment