Skip to content

Instantly share code, notes, and snippets.

@zahardev
Last active July 2, 2023 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zahardev/0781e9258b3e919d50126146df3c5083 to your computer and use it in GitHub Desktop.
Save zahardev/0781e9258b3e919d50126146df3c5083 to your computer and use it in GitHub Desktop.
Quick navigation through your Linux (or maybe Mac) system in console
#!/bin/bash
case "$1" in
work)
path="/home/myuser/Work/"
;;
flutter)
path="/home/myuser/Work/flutter/"
;;
esac
cd $path
@zahardev
Copy link
Author

zahardev commented Jul 2, 2023

  1. Create file goto (and adjust it for your needs).
  2. Make the file executable: chmod +x goto
  3. Move file goto to your bin folder, for example: mv goto /usr/bin
  4. Usage: . goto work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment