Skip to content

Instantly share code, notes, and snippets.

@okor
Created October 9, 2011 03:24
Show Gist options
  • Save okor/1273230 to your computer and use it in GitHub Desktop.
Save okor/1273230 to your computer and use it in GitHub Desktop.
linux .bashrc
# ~/.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 ls='ls -G'
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 sl='ls'
alias nano='nano -$'
#
export CLICOLOR=1
# use yellow for directories
export LSCOLORS=dxfxcxdxbxegedabagacad
####################################################################################################
# Exports ##########################################################################################
####################################################################################################
#
####################################################################################################
# For rvm & ruby paths #############################################################################
####################################################################################################
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment