zsh “shortcuts”

$ cat ~/.config/zsh/nav.zsh 
───────┬─────────────────────────────────────────────────────────────────────
       │ File: /Users/bakert/.config/zsh/nav.zsh
───────┼─────────────────────────────────────────────────────────────────────
   1   │ export MONOREPO_ROOT="/Users/bakert/cardeio-monorepo-v2"
   2   │ export ORGANIZED_PLAY="$MONOREPO_ROOT/apps/organized-play"
   3   │ export PLAY_NEXT="$MONOREPO_ROOT/apps/play-next"
   4   │ export LUDWIG="$MONOREPO_ROOT/apps/ludwig"
   5   │ export CARD_SEARCH_DEMO="$MONOREPO_ROOT/apps/card-search-demo"
   6   │ export DECK_BUILDER="$MONOREPO_ROOT/packages/deck-builder"
   7   │ 
   8   │ hash -d mr="$MONOREPO_ROOT"
   9   │ hash -d op="$ORGANIZED_PLAY"
  10   │ hash -d pn="$PLAY_NEXT"
  11   │ hash -d lw="$LUDWIG"
  12   │ hash -d cs="$CARD_SEARCH_DEMO"
  13   │ hash -d db="$DECK_BUILDER"
───────┴──────────────────────────────────────────────────────────────────────

Use prefixed with ~ anywhere you need a path:

$ cd ~mr
$ vi ~lw/src/index.ts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.