Skip to content

Commit

Permalink
BREAKING feat: add some alias
Browse files Browse the repository at this point in the history
remove `temp` `tempdir`
add `tmp` `myrepo` `cdrepo`
  • Loading branch information
ndxbn committed Oct 27, 2024
1 parent 51c3ccc commit d4f91b9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions zsh/.zsh_plugin.d/alias.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ alias vim='vi'

# shorthand
alias http-server='docker run -v `pwd`:/usr/share/nginx/html:ro -p 8080:80 nginx:alpine'
alias temp='pushd $(TMPDIR=${HOME}/.local/tmp mktemp -d)'
alias tempdir='pushd $(TMPDIR=${HOME}/.local/tmp mktemp -d)'
alias tmp='pushd $(TMPDIR=${HOME}/.local/tmp mktemp -d)'

# GitHub tools
alias myrepo='gh repo list --json name --jq ".[].name" --no-archived | peco | xargs ghq get'
alias cdrepo='pushd $(ghq root)/$(ghq list | peco)'

0 comments on commit d4f91b9

Please sign in to comment.