-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
41 lines (36 loc) · 1.15 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
alias rm='rm -i'
alias cp='cp -i'
alias myip="curl -Is checkip.10gen.com | grep X-Your-IP | cut -f2 -d' '" # Find my IP address
alias eclipse="eclipse -vmargs -Xmx4G -XX:MaxPermSize=4G"
if [[ $(uname) == 'Linux' ]]; then
alias open='gnome-open'
fi
alias cargo='time cargo'
alias npm='time npm'
alias npmcib='npm run clean && npm i && npm run build'
alias npmib='npm i && npm run build'
alias npmi='npm i'
alias npmb='npm run build'
alias ceramic='time node packages/cli/bin/ceramic.js'
alias composedb='time node packages/cli/bin/run.js'
alias glaze='time node packages/cli/bin/run'
alias ipfs='time ipfs'
alias fuck='eval $(thefuck $(fc -ln -1))'
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
fi
if [[ $(uname) == 'Linux' ]]; then
alias ls='ls --color=auto -F -h'
else
alias ls='ls -GFh'
fi
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# some more ls aliases
alias ll='ls -l'
alias la='ls -A'
#alias l='ls -CF'