aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xqcd7
1 files changed, 7 insertions, 0 deletions
diff --git a/qcd b/qcd
index b069963..efb0f59 100755
--- a/qcd
+++ b/qcd
@@ -56,6 +56,13 @@ function qcd () {
fi
;;
-c)
+ local shortcut=$2
+ local path=$3
+
+ if shortcut_exists $shortcut; then
+ path=$(absolute_path $path)
+ sed -i.bak -E "s/^${shortcut} .+$/${shortcut} ${path//\//\/}/" $QCD_DATABASE_FILE
+ fi
;;
-r)
;;