-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
executable file
·61 lines (60 loc) · 2.12 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
54
55
56
57
58
59
60
61
# vim: filetype=sh
alias gs='git status --short --branch'
alias gsh='git show'
alias gd='git diff'
alias gds='git diff --staged'
alias gdn='git diff --stat'
alias ga='git add --all'
alias gre='git reset'
alias grh='git reset --hard'
alias gc='git commit --verbose'
alias gch='git checkout'
alias gl='git log --abbrev-commit'
alias gln='git log --abbrev-commit --stat'
alias glg='git log --graph --decorate --source --all --oneline'
alias gl1='git log --abbrev-commit --format=oneline'
alias gl1m="gl1 master..."
alias grb='git rebase'
alias grs='git reset'
alias gfo='git fetch origin'
alias push='git push'
alias gcp='git cherry-pick'
alias grv='git remote --verbose'
alias v='vimp'
alias m='gmake'
alias n='npm'
alias make='gmake'
alias less='less -R'
alias j='jobs -l'
alias l='ls -1hAF --group-directories-first'
alias ll='ls --time-style="+%F %T" --group-directories-first -hlAF'
alias files='cut -d: -f1 | uniq | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"'
alias encrypt='openssl enc -aes-256-cbc -e'
alias decrypt='openssl aes-256-cbc -d'
alias www="~/src/nginx-server/nginx-server.py"
alias wwws="simplehttp2server"
alias stripcolor='sed -r "s:\x1B\[[0-9;]*[mK]::g"'
alias striptags='sed "s/<[^>]*>//g"'
alias rnd="tr -dc '(-~' < /dev/urandom | head -c${1:-37} | pbcopy"
alias tree="tree -N"
alias calc='bc -l <<<'
alias be="bundle exec"
alias ports="sudo lsof -PiTCP -sTCP:LISTEN"
alias ip="ifconfig | grep -Po '(?<=inet )\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}' | grep -v '127.0.0.1'"
alias pbwrap="pbpaste | prettier --stdin-filepath text.md --print-width 72 --prose-wrap always | pbcopy"
alias rehash="hash -r"
alias bytes="numfmt --to=iec-i --suffix=B --padding=7"
alias k9="kill -9"
alias yt="yarn test"
alias flushdns="sudo killall -HUP mDNSResponder"
alias timestamp='date "+%Y%m%d%H%M%S"'
alias nvmload='source $HOME/.nvm/nvm.sh'
alias rm="rm -v"
alias e="code -n ."
alias trim="sed -E 's/(^\s+|\s+*)//g'"
alias cql='sqlite-utils memory'
alias sshaddk='ssh-add -K ~/.ssh/id_rsa'
alias nodenpmversion='curl -s https://nodejs.org/dist/index.json | jq -r ".[] | [.version, .npm] | @tsv"'
alias webp='cwebp'
alias inspect='identify'
alias d="docker"