Created
July 13, 2012 14:24
-
-
Save xlab/3105174 to your computer and use it in GitHub Desktop.
Nokia N810 .profile
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
#!/bin/sh | |
cd ~ | |
export HISTCONTROL=ignoredups | |
shopt -s checkwinsize | |
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)" | |
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"' | |
export PROMPT_COMMAND | |
# Comment out to disable colored prompt | |
COLOR=yes | |
# Uncomment for a bright prompt (better looking on dark background) | |
#BRIGHT=";1" | |
# For color terminals set a colored prompt. | |
# We have to try to please both those with dark background as well | |
# as those with a bright background. | |
case $COLOR-$TERM in | |
yes-linux* | yes-xterm* | yes-roxterm* | yes-rxvt* | yes-screen* | yes-Eterm* | yes-vt10* | yes-rxvt*) | |
# Since BASH cannot assume something about terminals, we have to point him | |
# whenever characters in prompt are "visible" or "invisible" by using | |
# \[ (start invisible) and \] (end invisible) characters | |
PS1="\[\033[0${BRIGHT}m\][\[\033[34m\]\u\[\033[0${BRIGHT}m\]|\[\033[36m\]\w\[\033[0${BRIGHT}m\]]\[\033[0m\] " | |
PS2="\[\033[0${BRIGHT}m\]>\[\033[0m\] " | |
;; | |
*) | |
PS1="[\u|\w] " | |
PS2="> " | |
;; | |
esac | |
export PS1 PS2 | |
alias pic="run-standalone.sh mirage $1" | |
alias ed="run-standalone.sh leafpad $1" | |
alias rs="run-standalone.sh $1" | |
alias ai="apt-get install $1" | |
alias as="apt-cache search $1" | |
alias ar="apt-get remove $1" | |
alias au="apt-get update" | |
export WWW_HOME="http://google.com" | |
export PATH="$PATH:/usr/local/bin/:/usr/local/games:/usr/games" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment