Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cron update

  • Loading branch information...
commit f736ae6ae104a1b200345d4a503d6128aabbac0a 1 parent 92b6ed4
@gabesoft authored
Showing with 19 additions and 4 deletions.
  1. +19 −4 .bashrc
View
23 .bashrc
@@ -2,6 +2,12 @@
# User specific aliases and functions
# alias = list all aliases
+# cd = navigate home
+# cd - = navigate to previous folder
+
+#navigation
+alias ..='cd ..'
+alias ...='cd .. ; cd ..'
# delete
alias rm='rm -i'
@@ -32,10 +38,7 @@ alias colors="set | egrep 'COLOR_\w*'" # lists all the colors
source ~/git-completion.bash
# show git branch in status line
-#PS1='\w$(__git_ps1 " (%s)")>\$ '
-#export PS1='\\[${COLOR_GREEN}\\]\\w$(__git_ps1 " (%s)") > \\[${COLOR_NC}\\]'
-export PS1="\\[${COLOR_GREEN}\\]\\w$(__git_ps1 ' (%s)')> \\[${COLOR_NC}\\]"
-#export PS1="\\[${COLOR_GREEN}\\]\\w$(__git_ps1 \" (%s)\")>\\$ > \\[${COLOR_NC}\\]"
+export PS1="\\[${COLOR_BROWN}\\]\\w\\[${COLOR_CYAN}\$(__git_ps1)${COLOR_BROWN}\\]> \\[${COLOR_NC}\\]"
export PROMPT_COMMAND='echo -ne "\033]0;${PWD/$HOME/~}\007"'
# source global definitions
@@ -48,6 +51,18 @@ fi
#export PATH=:~/bin:$PATH
#fi
+# save bookmarks to folders
+if [ ! -f ~/.dirs ]; then # if doesn't exist, create it
+ touch ~/.dirs
+fi
+
+alias show='cat ~/.dirs'
+save (){
+ command sed "/!$/d" ~/.dirs > ~/.dirs1; \\mv ~/.dirs1 ~/.dirs; echo "$@"=\\"`pwd`\\" >> ~/.dirs; source ~/.dirs ;
+}
+source ~/.dirs # Initialization for the above 'save' facility: source the .sdirs file
+shopt -s cdable_vars # set the bash option so that no '$' is required when using the above facility
+
# colors
export TERM=xterm-color
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'
Please sign in to comment.
Something went wrong with that request. Please try again.