From 50787494e9dcbed9fa3caa96cba46a0c40d321d8 Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Fri, 23 Oct 2015 16:04:25 -0300 Subject: Add mkshrc config --- mkshrc | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 mkshrc (limited to 'mkshrc') diff --git a/mkshrc b/mkshrc new file mode 100644 index 0000000..24e627c --- /dev/null +++ b/mkshrc @@ -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" -- cgit v1.2.3-70-g09d2