-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaliases
More file actions
30 lines (26 loc) · 975 Bytes
/
Copy pathaliases
File metadata and controls
30 lines (26 loc) · 975 Bytes
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
#!/usr/bin/env bash
alias ls='ls -CFGtr'
if [[ $(uname) == "Darwin" ]]; then
(which gls > /dev/null) && alias ls="gls --color=auto --group-directories-first --file-type --time-style=+'%F %T'"
(which gstat > /dev/null) && alias numfmt="gnumfmt"
fi
alias bab='babushka'
alias brewlist='brew list | less'
alias bx='bundle exec'
alias cdr='cd $(git rev-parse --show-cdup 2>/dev/null)'
alias diff='colordiff -u'
alias duh='du -csh'
alias grep='grep --color=auto'
alias l='ls -1trG'
alias la='ls -latr'
alias ll='ls -ltr'
alias rspec='rspec --color --tty --format documentation'
alias sr='screen -r'
alias sshu='ssh -A -l ubuntu '
alias t='tmux'
alias ta='tmux attach'
alias topboth='top -s 10 -o CPU -O mem -stats pid,command,cpu,mem -user `whoami`'
alias topcpu='top -s 10 -o CPU -stats pid,command,cpu -user `whoami`'
alias topmem='top -s 10 -o MEM -stats pid,command,mem -user `whoami`'
alias tree='tree -FC --dirsfirst'
(which hub > /dev/null 2>&1) && alias git='hub'