forked from pyrytakala/env
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
53 lines (37 loc) · 964 Bytes
/
.bashrc
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
47
48
49
50
51
52
53
# .bashrc
##################################
# MACHINE-SPECIFIC
##################################
##################################
# LOOKS
##################################
# Better contrast (http://linux-sxs.org/housekeeping/lscolors.html)
alias ls='ls --color'
LS_COLORS='di=1:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rpm=90'
export LS_COLORS
##################################
# SHORTCUTS
##################################
# Avoid accidential overrides
function del() {
mv "${@}" ~/recycle/"${@}"
}
alias mv="mv -i"
alias cp="cp -i"
alias rm="echo rm disabled. Use del instead"
# Faster browsing: cs = cd and ls
cs() { cd "$1" && ls; }
# Print path variables in a readable format
function path(){
old=$IFS
IFS=:
printf "%s\n" $PATH
IFS=$old
}
alias vi="vim"
alias que='squeue | grep $USER'
##################################
# FUNCTIONALITY
##################################
# Default editor
export EDITOR='vim'