-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_aliases
43 lines (35 loc) · 1.44 KB
/
bash_aliases
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
# Interactive operation...
alias rm='rm -I'
alias cp='cp -i'
alias mv='mv -i'
# Default to human readable figures
alias df='df -h'
alias du='du -h'
# Misc :)
alias grep='grep --color' # show differences in colour
alias egrep='egrep --color=auto' # show differences in colour
alias fgrep='fgrep --color=auto' # show differences in colour
alias diff='colordiff' # Use colordiff as default diff tool
# Listings
alias ls='ls -hF --color' # add color for filetype recognition
alias ll='ls -lh --group-directories-first' #
alias la='ls -lhA' # show hidden files
alias lx='ls -lhXB' # sort by extension
alias lk='ls -lhSr' # sort by size
alias lc='ls -lhtcr' # sort by and show change time, most recent last
alias lu='ls -lhtur' # sort by and show access time, most recent last
# Directories
alias brlf='cd /cygdrive/d/brilliant/'
alias globf='cd /cygdrive/s/Brilliant/Eirik/'
alias netf='cd /cygdrive/z/eirik/'
#cygwin
if [ $(uname -o) == "Cygwin" ]; then
alias start='cygstart'
alias git='/cygdrive/c/Program\ Files/Git/mingw64/bin/git.exe'
fi
alias brg='brl %noconnect && start GeoFile.brf'
zip_version_function() {
zip "$(basename $1)_$(git rev-parse --short HEAD).zip" -r $1
}
alias zipversion=zip_version_function
alias pip='python -m pip'