-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.shinit
46 lines (36 loc) · 933 Bytes
/
.shinit
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
42
43
44
45
46
export EDITOR=vim
export TERM="xterm-256color"
export LANG=en_US.UTF-8
export IGNOREEOF=3
export CLICOLOR=1
export LSCOLORS=DxGxcxdxCxegedabagacad
## undefine Ctrl-S for i-search
[ -t 0 ] && stty stop undef
if [ ! -f /etc/bashrc ]; then
export PS1="[\u@\h \s(\v) \w]$ "
fi
# ===================== Alias ======================
alias ..='cd ..'
alias cp="cp -i"
alias rm="rm -id"
alias be='bundle exec'
alias python=python3
alias pip=pip3
alias tree="tree -a"
if [ "$(uname)" = 'Darwin' ];
then
alias ls='ls -GpF' # Mac OSX specific
alias ll='ls -alGpF' # Mac OSX specific
alias o="open "
alias getplain='pbpaste | pbcopy'
else
alias ls="ls --color=tty -F"
alias ll="ls -Alh"
fi
alias vi="vim" # Use vim installed by brew
# ===================== less ======================
export LESS='-g -i -R -z-4 -x4'
export PAGER=less
if command -v lesspipe.sh > /dev/null; then
export LESSOPEN='| /usr/bin/env lesspipe.sh %s 2>&-'
fi