|
|
@@ -0,0 +1,60 @@
|
|
|
+# ~/.bashrc: executed by bash(1) for non-login shells.
|
|
|
+# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
|
|
+# for examples
|
|
|
+
|
|
|
+# If not running interactively, don't do anything
|
|
|
+case $- in
|
|
|
+ *i*) ;;
|
|
|
+ *) return;;
|
|
|
+esac
|
|
|
+
|
|
|
+HISTCONTROL=ignoreboth
|
|
|
+shopt -s histappend
|
|
|
+
|
|
|
+# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
|
|
+HISTSIZE=10000
|
|
|
+HISTFILESIZE=20000
|
|
|
+
|
|
|
+# check the window size after each command and, if necessary,
|
|
|
+# update the values of LINES and COLUMNS.
|
|
|
+shopt -s checkwinsize
|
|
|
+
|
|
|
+# enable color support of ls and also add handy aliases
|
|
|
+if [ -x /usr/bin/dircolors ]; then
|
|
|
+ test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
|
|
+ alias ls='ls --color=auto'
|
|
|
+ #alias dir='dir --color=auto'
|
|
|
+ #alias vdir='vdir --color=auto'
|
|
|
+
|
|
|
+ #alias grep='grep --color=auto'
|
|
|
+ #alias fgrep='fgrep --color=auto'
|
|
|
+ #alias egrep='egrep --color=auto'
|
|
|
+fi
|
|
|
+
|
|
|
+# enable programmable completion features (you don't need to enable
|
|
|
+# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
|
|
+# sources /etc/bash.bashrc).
|
|
|
+if ! shopt -oq posix; then
|
|
|
+ if [ -f /usr/share/bash-completion/bash_completion ]; then
|
|
|
+ . /usr/share/bash-completion/bash_completion
|
|
|
+ elif [ -f /etc/bash_completion ]; then
|
|
|
+ . /etc/bash_completion
|
|
|
+ fi
|
|
|
+fi
|
|
|
+#export XKB_DEFAULT_OPTIONS=compose:ralt,ctrl:nocaps
|
|
|
+
|
|
|
+export ANDROID_SDK_ROOT=/Users/bc/Library/Android/sdk
|
|
|
+export NVM_DIR="$HOME/.nvm"
|
|
|
+[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
|
+[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
|
|
+
|
|
|
+alias c=clear
|
|
|
+alias q=exit
|
|
|
+alias :q=exit
|
|
|
+alias d="dirs -v" # print recently visited directories
|
|
|
+alias dup="foot & disown"
|
|
|
+
|
|
|
+bind '"\e[A": history-search-backward'
|
|
|
+bind '"\e[B": history-search-forward'
|
|
|
+
|
|
|
+set -o vi
|