From 389f8c425e59c5f4c8f19eb75742edffa524db8e Mon Sep 17 00:00:00 2001 From: Rob Whittaker Date: Thu, 2 Nov 2023 16:42:15 +0000 Subject: [PATCH] Add an `...` alias for quicker navigation Before, we would have to use eight keystrokes to move up two directories in the terminal. We wasted so much unnecessary time. We added an `...` alias to reduce the keystrokes and gain productivity. --- README.md | 1 + aliases | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 4bcf8dc0a4..13fac8d121 100644 --- a/README.md +++ b/README.md @@ -224,6 +224,7 @@ configuration: Shell aliases and scripts: +- `...` for quicker navigation to the parent's parent directory. - `b` for `bundle`. - `g` with no arguments is `git status` and with arguments acts like `git`. - `migrate` for `bin/rails db:migrate db:rollback && bin/rails db:migrate db:test:prepare`. diff --git a/aliases b/aliases index e0e3f49cfd..24d3b68ae8 100644 --- a/aliases +++ b/aliases @@ -15,6 +15,9 @@ alias s="rspec" # Pretty print the path alias path='echo $PATH | tr -s ":" "\n"' +# Easier navigation: ... +alias ...="cd ../.." + # Include custom aliases if [[ -f ~/.aliases.local ]]; then source ~/.aliases.local