Linux Prompts and Aliases

I'm getting tired setting up my linux prompts every time I need to setup a new Linux machine (more on this later), so here's my cheat-sheet of linux settings for your .bashrc or .profile:

Production machine (red theme):
export PS1="\n\[\033[1;31m\]\u\[\033[1;37m\]@\[\033[0;31m\]\h\n\[\033[0m\][\[\033[1;33m\]\w\[\033[0m\]] "


QA machine (purple theme):
export PS1="\n\[\033[1;35m\]\u\[\033[1;37m\]@\[\033[0;35m\]\h\n\[\033[0m\][\[\033[1;33m\]\w\[\033[0m\]] "

Test machine (yellow theme):
export PS1="\n\[\033[1;33m\]\u\[\033[1;37m\]@\[\033[0;33m\]\h\n\[\033[0m\][\[\033[1;33m\]\w\[\033[0m\]] "


Test machine (cyan theme):
export PS1="\n\[\033[1;36m\]\u\[\033[1;37m\]@\[\033[0;36m\]\h\n\[\033[0m\][\[\033[1;33m\]\w\[\033[0m\]] "

Integration machine (blue theme):
export PS1="\n\[\033[1;34m\]\u\[\033[1;37m\]@\[\033[0;34m\]\h\n\[\033[0m\][\[\033[1;33m\]\w\[\033[0m\]] "


Personal/Local Account (green theme):
export PS1="\n\[\033[1;32m\]\u\[\033[1;37m\]@\[\033[0;32m\]\h\n\[\033[0m\][\[\033[1;33m\]\w\[\033[0m\]] "


So here's a full .bashrc where you can comment-out to your heart's content:
# ===========================================================================
# == ksymeon's settings
# ===========================================================================

# Prod Machine (Red theme):

# export PS1="\n\[\033[1;31m\]\u\[\033[1;37m\]@\[\033[0;31m\]\h\n\[\033[0m\][\[\033[1;33m\]\w\[\033[0m\]] "

# OTE Machine (purple theme):

# export PS1="\n\[\033[1;35m\]\u\[\033[1;37m\]@\[\033[0;35m\]\h\n\[\033[0m\][\[\033[1;33m\]\w\[\033[0m\]] "

# Test machine (blue theme):

# export PS1="\n\[\033[1;34m\]\u\[\033[1;37m\]@\[\033[0;34m\]\h\n\[\033[0m\][\[\033[1;33m\]\w\[\033[0m\]] "

# Test machine (yellow theme):

# export PS1="\n\[\033[1;33m\]\u\[\033[1;37m\]@\[\033[0;33m\]\h\n\[\033[0m\][\[\033[1;33m\]\w\[\033[0m\]] "

# Test machine (cyan theme):

# export PS1="\n\[\033[1;36m\]\u\[\033[1;37m\]@\[\033[0;36m\]\h\n\[\033[0m\][\[\033[1;33m\]\w\[\033[0m\]] "

# Local Cygwin (green theme):

# export PS1="\n\[\033[1;32m\]\u\[\033[1;37m\]@\[\033[0;32m\]\h\n\[\033[0m\][\[\033[1;33m\]\w\[\033[0m\]] "


umask 077

alias l="ls -lFa --color=auto"
alias la="ls -FA --color=auto"
alias ll="ls -lF --color=auto"

xmodmap -e "keycode 94 = backslash bar"

# ===========================================================================

# == End of ksymeon's settings
# ===========================================================================

Comments

Popular posts from this blog

GetDIBits vs. Scanline vs. Pixels[] in Delphi Bitmaps

Installation of Mint 17.1 Cinnamon on VMWare

Chrome Packaged Apps