blob: 24e627cbfe460b569cef0244eec317b6742260aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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"
|