-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
36 lines (34 loc) · 1.79 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
# Easier navigation: .., ..., ~ and -
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
# Recursively delete `.DS_Store` files
alias cleanup="find . -name '*.DS_Store' -type f -ls -delete"
alias ls="eza"
alias ll="eza --long --header --classify --git"
alias tree="eza --tree"
alias please="sudo" # be nice
alias fuck='sudo $(history -p \!\!)'
alias server="http-server -s -o"
alias eh="sudo vim /etc/hosts"
alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
# alias canary="/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary"
alias canary="open -n -a /Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --args --user-data-dir=\"/tmp/chrome_dev_test\" --disable-web-security --disable-translate --disable-crash-reporter --disable-breakpad --disable-reporting"
alias bew="brew update && brew upgrade && brew cleanup"
alias sim="open -a simulator"
alias dark="base16_material-darker && git config --global delta.syntax-theme zenburn"
alias light="base16_cupertino && git config --global delta.syntax-theme GitHub"
alias preview="fzf --preview 'bat --color \"always\" {}'"
alias gd="git status -s | fzf --no-sort --reverse --preview 'git diff --color="always" {+2} | diff-so-fancy' \
--bind=ctrl-j:preview-down --bind=ctrl-k:preview-up \
--preview-window=right:70%:wrap"
alias gds="git status -s | fzf --no-sort --reverse --preview 'git diff --staged --color="always" {+2} | diff-so-fancy' \
--bind=ctrl-j:preview-down --bind=ctrl-k:preview-up \
--preview-window=right:70%:wrap"
alias blog="z blog && hugo server --buildDrafts --noHTTPCache"
alias sm="source-map-explorer"
alias dc="docker-compose"
alias wb="webpack-bundle-analyzer"
alias sail='[ -f sail ] && bash sail || bash vendor/bin/sail'
alias f="fnm"