summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2015-10-23 16:04:25 -0300
committerMatias Linares <matiaslina@openmailbox.org>2015-10-23 16:04:25 -0300
commit50787494e9dcbed9fa3caa96cba46a0c40d321d8 (patch)
tree393c45087c952b4770ffa94d9a93ecddd04d1f6d
parent5b132bf1244a008ad3ce67688030a7678831f77d (diff)
downloaddotfiles-50787494e9dcbed9fa3caa96cba46a0c40d321d8.tar.gz
Add mkshrc config
-rw-r--r--mkshrc41
1 files changed, 41 insertions, 0 deletions
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"