Skip to content

Commit

Permalink
Add some aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
statico committed Jul 30, 2024
1 parent 9292f0c commit 141e5e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
.vim/bundle/*/doc/tags-??
.vimlocal
.zsh-completions
.aider*
10 changes: 9 additions & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ alias aag='agg'
alias agg='_agg () { rg --group $@ | less }; _agg'
alias aurl='adb shell am start -a "android.intent.action.VIEW" -d'
alias bc='bc -l'
alias com='git checkout main'
alias cr2lf="perl -pi -e 's/\x0d/\x0a/gs'"
alias curlheaders='curl -s -D- -o/dev/null'
alias curltime='curl -w "@$HOME/.curl-format" -o /dev/null -s'
Expand Down Expand Up @@ -245,7 +246,6 @@ alias vimsql="vim -c 'set ft=sql'"
alias wgetdir='wget -r -l1 -P035 -nd --no-parent'
alias wip='git add -A ; git commit --all --no-verify -m WIP'
alias x='screen -A -x'
alias y='yarn'
alias yad='yarn add -D'
alias ye='yarn exec'
alias yeshist='HISTFILE=~/.zsh_history'
Expand All @@ -272,6 +272,9 @@ fi
if ! _has gvim && _has open; then
alias gvim='open -a "MacVim"'
fi
if ! _has mvim && _has open; then
alias mvim='open -a "MacVim"'
fi

# Use ripgrep or silver searcher over ack.
if _has rg; then
Expand Down Expand Up @@ -371,6 +374,11 @@ if _has pnpm ; then
alias npx='pnpm dlx'
fi

# Make a nice alias for tailscale on macOS
if [ -e /Applications/Tailscale.app/Contents/MacOS/Tailscale ]; then
alias tailscale='/Applications/Tailscale.app/Contents/MacOS/Tailscale'
fi

# FUNCTIONS {{{1

# Generate passwords
Expand Down

0 comments on commit 141e5e4

Please sign in to comment.