Created
October 9, 2011 03:24
-
-
Save okor/1273230 to your computer and use it in GitHub Desktop.
linux .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 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