diff options
Diffstat (limited to 'mkshrc')
-rw-r--r-- | mkshrc | 41 |
1 files changed, 41 insertions, 0 deletions
@@ -0,0 +1,41 @@ +# Replace /home/user to ~ +export PS1="[\${PWD/\$HOME/\~}] +> " + +# No bold colors. +export LS_COLORS="no=00:fi=00:di=34:ln=01;31:pi=34;43:so=31;43:bd=30;43:cd=30;43:or=01;35:ex=01;31:" +export GREP_COLOR=31 +# Highlight +export ACK_COLOR_FILENAME=red + +if test -x /usr/bin/vis +then + _editor=/usr/bin/vis +else + _editor=/usr/bin/vim +fi + +export EDITOR=$_editor +export FCEDIT=$_editor +export HISTFILE=${HOME}/.mksh_history +export HISTSIZE=1024 + +# Bind to a better history +bind '^XA'=search-history-up +bind '^XB'=search-history-down + +# Functions + +_spawn() { + set -o nohup + $@ 2>&1 > /dev/null & + set +o nohup +} + + +# Aliases +alias ls="ls --color=auto" +alias grep="grep --color=auto" +alias spawn="_spawn" +alias ix='curl -F "f:1=<-" -F "ext:1=$1" ix.io' +alias clear-pacman-cache="paccache -r && paccache -ruk0" |