Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
83 lines (62 sloc) 2.31 KB
#### Setup some colors to use later in interactive shell or scripts
export COLOR_NC='\033[0m' # No Color
export COLOR_WHITE='\033[1;37m'
export COLOR_BLACK='\033[0;30m'
export COLOR_BLUE='\033[0;34m'
export COLOR_LIGHT_BLUE='\033[1;34m'
export COLOR_GREEN='\033[0;32m'
export COLOR_LIGHT_GREEN='\033[1;32m'
export COLOR_CYAN='\033[0;36m'
export COLOR_LIGHT_CYAN='\033[1;36m'
export COLOR_RED='\033[0;31m'
export COLOR_LIGHT_RED='\033[1;31m'
export COLOR_PURPLE='\033[0;35m'
export COLOR_LIGHT_PURPLE='\033[1;35m'
export COLOR_BROWN='\033[0;33m'
export COLOR_YELLOW='\033[1;33m'
export COLOR_GRAY='\033[1;30m'
export COLOR_LIGHT_GRAY='\033[0;37m'
# hard kill a process
killhard() {
kill -9 "$1"
}
# After each command, checks the windows size and changes lines and columns
shopt -s checkwinsize
# note: bind is used instead of setting these in .inputrc. This ignores case in bash completion
bind "set completion-ignore-case on"
# this allows you to automatically show completion without double tab-ing
bind "set show-all-if-ambiguous On"
# Colors
export TERM=xterm-color
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'
export CLICOLOR=1
#### MacPorts Installer addition on 2011-07-30_at_19:15:20: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
#### Finished adapting your PATH environment variable for use with MacPorts.
# change history options
HISTFILESIZE=1000000000 HISTSIZE=1000000
# Keep the times of the commands in history.
HISTTIMEFORMAT='%F %T '
#Ignore some commands in history
export HISTIGNORE="cd:exit:..:...:ll:ls:l."
# this pipes all defaults commands in txt document to keep track of all used defaults changes
#PROMPT_COMMAND='echo "$(history 1 | grep "defaults")" | sed '/^$/d' >> ~/Dropbox/Dokumente/defaults_MacbookPro.txt'
# use hf and the word to search in the history
hf(){
grep "$@" ~/.bash_history
}
# Case-insensitive globbing (used in pathname expansion)
shopt -s nocaseglob
# Append to the Bash history file, rather than overwriting it
shopt -s histappend
# Autocorrect typos in path names when using `cd`
shopt -s cdspell
# Enable advanced pattern matching.
shopt -s extglob
# get dotfiles from github
git_down() {
curl -O https://raw.github.com/derjungewilde/dotfiles/master/$@
}
#### Bring in the other files
. ~/.bashrc_help
. ~/.alias
You can’t perform that action at this time.