From 75e358430db9ffa98080bd93a9c4e9d0b88d563b Mon Sep 17 00:00:00 2001 From: Jason Benterou Date: Sun, 2 Jun 2013 21:54:15 -0700 Subject: [PATCH] Add plugin: superstack Love pushd? Who doesn't? Show your love by permanently aliasing cd to pushd! --- plugins/available/superstack.plugin.bash | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 plugins/available/superstack.plugin.bash diff --git a/plugins/available/superstack.plugin.bash b/plugins/available/superstack.plugin.bash new file mode 100644 index 00000000..4a58bb10 --- /dev/null +++ b/plugins/available/superstack.plugin.bash @@ -0,0 +1,11 @@ +# cd becomes pushd +# +# Add to stack with: cd /path/to/directory +# Delete current dir from stack with: popd +# Show stack with: dirs + +cite about-plugin +about-plugin 'always use pushd - cd becomes pushd' + +alias cd='pushd' +alias dirs='dirs -v'