dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone git://edryd.org/dotfiles
Log | Files | Refs

commit 17218cf6d2be1841a8932104c03cfe70029fe3b8
parent 76d855bc28f596769f7891069eb857ca465983e3
Author: Ed van Bruggen <edvb54@gmail.com>
Date:   Tue,  1 Jul 2014 13:44:25 -0700

Clean up bash_profile

Diffstat:
bash_profile | 30+++++++++---------------------
1 file changed, 9 insertions(+), 21 deletions(-)

diff --git a/bash_profile b/bash_profile @@ -1,12 +1,12 @@ # prompt statement{{{1 -random_happy_ned() { +random_happy_face() { local faces=(":)" ":D" ":)" ":D" ":)" ":D" ":)") local l=${#faces[*]} local sym=${faces[$(($RANDOM % $l))]} echo $sym } -random_sad_ned() { +random_sad_face() { local faces=(":P" ":(" ":(" ":O" ":\\" ":|" ":(" ":(") local l=${#faces[*]} local sym=${faces[$(($RANDOM % $l))]} @@ -15,19 +15,12 @@ random_sad_ned() { cmd_check() { if [[ $? = 0 ]]; then - echo "${Green}$(random_happy_ned)"; + echo "${Green}$(random_happy_face)"; else - echo "${Red}$(random_sad_ned)"; + echo "${Red}$(random_sad_face)"; fi; } -# PS1='\ -# [${Blue}\u\ -# $(cmd_check) ${White}]\ -# ${White}$(__git_ps1 "[${Cyan}%s${White}]")${White}\ -# \$${Color_Off} \ -# ' - PS1='\ ${Blue}\u\ $(cmd_check) \ @@ -53,6 +46,10 @@ PS2="\$" # basic{{{1 export EDITOR='vim' +if [ "$TERM" == "xterm" ]; then + export TERM=xterm-256color +fi + # fortune | cowsay # alias stuff{{{1 @@ -78,16 +75,7 @@ alias v='xmodmap ~/.vim-keys.xmodmap' alias emacs='emacs -nw' alias vless='vim -u /usr/share/vim/vim74/macros/less.vim' -# function stuff{{{1 -function ipls -{ +ipls () { ifconfig | grep 'inet addr:' | awk {'print $2'} } -if [ "$TERM" == "xterm" ]; then - export TERM=xterm-256color - fi -if [ -f ~/.local/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh ]; then - source ~/.local/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh - fi -#}}}