-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
53 lines (45 loc) · 1.75 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
44
45
46
47
48
49
50
51
52
53
alias toc="gh-md-toc"
alias aws="/usr/local/bin/aws"
alias dn="dotnet"
alias gish="gitsh" # https://github.com/thoughtbot/gitsh
alias sorbet="srb"
alias sl='serverless'
#alias ccat='ccat -G String="_brown_" -G Plaintext="overline" -G Punctuation="darkteal" -G Decimal="darkgreen" -G Keyword="green" -G Comment="darkgray" -G Tag="faint"'
[[ `which bat` ]] && alias cat='bat'
# eg. retab spaces_and_tabs_mixture_indented.txt
alias retab='vim -s <(echo -e "gg=G\n:retab\n:wqa")'
alias less="less -R"
alias grep="grep --color"
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias ls='ls -G'
# alias l='ls -CF'
# Colored diff
if [[ -x `which colordiff` ]]; then
alias diff='colordiff -u'
else
alias diff='diff -u'
fi
alias fig=docker-compose
# Load xdebug Zend extension with php command
alias php='php -dzend_extension=xdebug.so'
# PHPUnit needs xdebug for coverage. In this case, just make an alias with php command prefix.
alias phpunit='php $(which phpunit)'
if [[ $(uname -s) -eq 'Darwin' && $(which free.py) ]]; then
# Ref :
# * [memory - Is there a Mac OS X Terminal version of the "free" command in Linux systems? - Ask Different](http://apple.stackexchange.com/questions/4286/is-there-a-mac-os-x-terminal-version-of-the-free-command-in-linux-systems)
# And copy free.py to /usr/local/bin
alias free="free.py"
fi
alias bfg='java -jar $HOME/bfg-1.12.5-unknown.jar'
# 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)"
alias ls='ls --color=auto'
#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'
fi