Permalink
Browse files

cron update

  • Loading branch information...
gabesoft committed May 18, 2011
1 parent f736ae6 commit 5f862bad1e0c0ada78c0de8f5f46ad20db13e7c0
Showing with 43 additions and 7 deletions.
  1. +43 −7 .bashrc
View
50 .bashrc
@@ -19,10 +19,24 @@ alias cp='cp -i'
alias mv='mv -i'
# list directory
+alias ls='ls --color'
alias ll='ls -hl'
alias la='ls -a'
alias lla='ls -lah'
+# grep / find
+alias g='grep -i'
+alias f='find . -iname'
+
+# list the size of all folders and files
+alias ducks='du -cks * | sort -rn|head -11'
+
+# system log
+alias systail='tail -f /var/log/system.log'
+
+# show most used commands
+alias profileme="history | awk '{print \$2}' | awk 'BEGIN{FS=\"|\"}{print \$1}' | sort | uniq -c | sort -n | tail -n 20 | sort -nr"
+
# disk usage
alias df='df -h'
@@ -32,13 +46,13 @@ alias untar='tar xvzf'
# version
alias ver='cat /etc/redhat-release'
-alias colors="set | egrep 'COLOR_\w*'" # lists all the colors
+alias colors="set | egrep '^COLOR_\w*'" # lists all the colors
# git tab completion
source ~/git-completion.bash
# show git branch in status line
-export PS1="\\[${COLOR_BROWN}\\]\\w\\[${COLOR_CYAN}\$(__git_ps1)${COLOR_BROWN}\\]> \\[${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,27 +62,49 @@ fi
# add bin to path
#if [ -d ~/bin ]; then
- #export PATH=:~/bin:$PATH
+ #export PATH=~/bin:$PATH
#fi
# save bookmarks to folders
+# save x = bookmarks the current directory as x
+# cd x = navigates to the bookmarked path
+# smarks = displays all bookmarks
+# cmarks = clears all bookmarks
if [ ! -f ~/.dirs ]; then # if doesn't exist, create it
touch ~/.dirs
fi
-alias show='cat ~/.dirs'
+alias smarks='cat ~/.dirs'
+alias cmarks='rm -f ~/.dirs; touch ~/.dirs'
save (){
- command sed "/!$/d" ~/.dirs > ~/.dirs1; \\mv ~/.dirs1 ~/.dirs; echo "$@"=\\"`pwd`\\" >> ~/.dirs; source ~/.dirs ;
+ 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
+# editor
+export EDITOR='vim -f'
+
+# history
+export HISTCONTROL=ignoredups
+
+# bash
+bind "set completion-ignore-case on"
+bind "set bell-style none"
+bind "set show-all-if-ambiguous on"
+
+# turn on advanced bash completion if the file exists
+# get it here: http://www.caliban.org/bash/index.shtml#completion
+if [ -f /etc/bash_completion ]; then
+ . /etc/bash_completion
+fi
+
# colors
export TERM=xterm-color
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'
export CLICOLOR=1
-#export LSCOLORS=Exfxcxdxbxegedabagacad
-export LS_COLORS='di=1:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rb=90'
+export LSCOLORS=Exfxcxdxbxegedabagacad
+#export LS_COLORS='di=1:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rb=90'
export COLOR_NC='\033[0m' # No Color
export COLOR_WHITE='\033[1;37m'

0 comments on commit 5f862ba

Please sign in to comment.