summaryrefslogtreecommitdiff
path: root/sh/.shrc
blob: fc05e91a0741546d35ab963851d37a31def398a8 (plain) (blame)
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
reset=$'\e[0m'
blue=$'\e[0;34m'
green=$'\e[0;32m'
PS1="\[${green}\]\u@\h\[${reset}\]:\[${blue}\]\W\[${green}\]\$\[${reset}\] "
unset reset blue green

export CLICOLOR=1
export PAGER=less
export LESS='-iMRS -x2'
export EDITOR=vim
export LSCOLORS=DxfxgxgxcxxbxbaCacADAd
#export LSCOLORS=ExfxgxgxcxxbxbaCacADAd

alias ls='ls -FHh'
alias ll='ls -l'
alias la='ls -la'
alias ..='cd ..'
alias ...='cd ../..'
alias mkdir='mkdir -p'
alias df='df -h'
alias du='du -ch'

bind ^[[A ed-search-prev-history
bind ^[[B ed-search-next-history
bind "\\e[1;5C" em-next-word
bind "\\e[1;5D" ed-prev-word

if [ "$(tty)" = /dev/ttyv0 ]; then
  startx
fi