From e625b6883a24ea60fe94fe4bb29f72fa13a1dc66 Mon Sep 17 00:00:00 2001 From: Holger Just Date: Wed, 30 Apr 2014 11:42:31 +0200 Subject: [PATCH] e() defaults to current directory --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 86196a8..2636029 100644 --- a/.bashrc +++ b/.bashrc @@ -311,7 +311,7 @@ with_project() { c() { with_project "$1" cd; } # open project in editor -e() { with_project "$1" "$BACKGROUND_EDITOR"; } +e() { with_project "${1:-.}" "$BACKGROUND_EDITOR"; } # Enable programmable completion features. if [[ -f /etc/bash_completion ]]; then . /etc/bash_completion; fi