-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.profile
42 lines (35 loc) · 1.97 KB
/
.profile
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
export EDITOR=/usr/bin/vim
test -s ~/.alias && . ~/.alias || true
# Use different command line if within VIM shell.
export PS1="\[\033[1;31m\]\w (\u@\h) \n\[\033[1;30m\] >\[\033[0;00m\] ";
export CLICOLOR=1
export LS_COLORS='di=1;34:fi=0:ex=1;32:*.f90=1;1'
export LS_COLORS=$LS_COLORS':*.c=1;1:*.cpp=1;1:*.hpp=1;1:*.h=1;1:*.o=37:*.mod=37:*~=37'
alias ls='ls -aG --color'
alias cp='cp -iv' # Preferred 'cp' implementation
alias mv='mv -iv' # Preferred 'mv' implementation
alias mkdir='mkdir -pv' # Preferred 'mkdir' implementation
alias ll='ls -FGlAhp' # Preferred 'ls' implementation
alias less='less -FSRXc' # Preferred 'less' implementation
#cd() { builtin cd "$@"; ls; } # Always list directory contents upon 'cd'
alias cd..='cd ../' # Go back 1 directory level (for fast typers)
#alias ..='cd ../' # Go back 1 directory level
#alias ...='cd ../../' # Go back 2 directory levels
#alias .3='cd ../../../' # Go back 3 directory levels
#alias .4='cd ../../../../' # Go back 4 directory levels
#alias .5='cd ../../../../../' # Go back 5 directory levels
#alias .6='cd ../../../../../../' # Go back 6 directory levels
#alias ~="cd ~" # ~: Go Home
#alias c='clear' # c: Clear terminal display
alias which='type -all' # which: Find executables
alias path='echo -e ${PATH//:/\\n}' # path: Echo all executable Paths
# To fix screen colors
export TERM=xterm-256color
# Key bindings, up/down arrow searches through history
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
bind '"\eOA": history-search-backward'
bind '"\eOB": history-search-forward'
HISTSIZE=10000
HISTFILESIZE=100000
shopt -s histappend