-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.aliases
57 lines (55 loc) · 2.87 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# from oh-my-zsh
alias ...='cd ../..'
alias ....='cd ../../..'
alias d='dirs -v | head -10'
#personal
alias cliplast='fc -ln|tail -1|pbcopy'
alias cp='cp -v'
alias cr='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222'
alias dkill='docker stop $(docker ps -a -q)'
alias drm='docker rm $(docker ps -a -q)'
alias drma='docker system prune -a --volumes # dkill; drm; drmi; drmv'
alias drmi='docker rmi -f $(docker images -q); docker rmi -f $(docker images -f "dangling=true" -q)'
alias eg='egrep'
alias g=git # removed noglob since djui/alias-tips will miss git aliases if it is used
alias generate_password='LC_ALL=C tr -dc "[:alnum:]" < /dev/urandom | head -c 20 | pbcopy '
alias glances='TERM=xterm-256color glances --process-short-name'
alias cop='gh copilot suggest -t shell'
alias gr='cd $(git rev-parse --show-toplevel)'
alias jic='jira issue create -a@me --web --no-input -l"frontend" -l"team-treatment" -yMedium -tTask'
alias jil='jila -q "status != done"'
alias jila='jira issue list -a$(jira me) --order-by lastViewed'
alias jilp='jil --plain'
alias jilw='jira issue list -q "assignee = currentUser() and updated >= startofDay(-8d)" --order-by updated --plain'
alias jim='jira issue move'
alias ka='kb && pilot run android'
alias kb='kw && kn'
alias kob='pilot oneoff both --configFlavor yellow && pilot oneoff both --configFlavor staging'
alias kn='tmux split-window -v "zsh -c \"if pilot start native -- --experimental-debugger; then exit; else read; fi\"" && pilot run ios'
alias kw='tmux split-window -v "zsh -c \"if pilot start web; then exit; else read; fi\"" && open http://localhost:9000'
alias l='ls -F '
alias la='ls -AF '
alias ld=lazydocker
alias ll='ls -lF '
alias lla='ll -A'
alias more=less
alias mv='mv -v'
alias ncdu='echo Use \"dua i\" instead of \"ncdu\", much faster'
alias prev='open -a Preview'
alias psh='pwsh.exe' # could add -NoLogo to get a more quiet startup
alias ql='qlmanage -p >/dev/null 2>&1'
alias resolution='system_profiler SPDisplaysDataType | grep Resolution'
alias rm_node_modules='$FD -t d -u node_modules -x rm -rf'
# screws up rm in sourced files, e.g. ssh-find-agent
#alias rm="echo Replace '\"rm\"' with '\"trash\"', or force the original with '\"\\\rm\"': trash "
alias tig='TERM=xterm-256color tig'
alias weather='curl -s v2.wttr.in'
alias y='noglob yadm'
alias yc='GIT_DIR=~/.local/share/yadm/repo.git code ~/.config/yadm'
alias yl='lazygit --use-config-file "$HOME/.config/yadm/lazygit.yml,$HOME/Library/Application Support/lazygit/config.yml" --work-tree ~ --git-dir ~/.local/share/yadm/repo.git'
alias yv='GIT_DIR=~/.local/share/yadm/repo.git vi ~/.config/yadm'
alias zmv='noglob zmv'
# ugrep is a drop-in replacement for grep
alias grep='ugrep -G --config' # search with basic regular expressions (BRE)
alias egrep='ugrep -E --config' # search with extended regular expressions (ERE)
alias fgrep='ugrep -F --config' # find string(s)