-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.aliases
39 lines (34 loc) · 1.32 KB
/
.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
# -*- sh -*-
#
###############
### Aliases ###
###############
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
alias l='ls -l -F --color'
alias ls='ls -F --color'
alias df='df -h'
alias jobs='jobs -p'
alias diff='colordiff'
alias classpath='echo $CLASSPATH | tr ":" "\n"'
alias cvsStat='cvs status 2>&1 | grep 'File:' | grep -v Up-to-date'
alias emacs='emacs --no-site-file'
alias pp='ps -u$USER -ww -o pid,etime,pcpu,rss,args'
alias tree='tree -C'
alias aria2c='aria2c --min-split-size=1M --max-connection-per-server=16 --split=25 --max-concurrent-downloads=25 --summary-interval=0 --truncate-console-readout=false --check-certificate=false'
which --skip-alias ifconfig >& /dev/null
if [ "$?" != 0 ]
then
alias ifconfig="echo -e '\t\033[49;32;1mifconfig deprecated; using ip addr\033[0m' ; ip addr"
fi
# If the emacs process is running as a server this will open the file in it
# else it will start a new process.
alias e="emacsclient --alternate-editor=emacs -n"
# https://superuser.com/questions/763071/show-whitespace-characters-in-printout
#
# SP ' ' 0x20 = · U+00B7 Middle Dot
# TAB '\t' 0x09 = → U+FFEB Halfwidth Rightwards Arrow
# CR '\r' 0x0D = § U+00A7 Section Sign (⏎ U+23CE also works fine)
# LF '\n' 0x0A = ¶ U+00B6 Pilcrow Sign (was "Paragraph Sign")
alias whitespace="sed 's/ /·/g;s/\t/→/g;s/\r/§/g;s/$/¶/g'"