aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2016-07-22 04:24:44 -0400
committerTeddy Wing2016-07-22 04:24:44 -0400
commitb3c735fb2f3c7ac648495b2c5beaf0d3e1adc411 (patch)
treece64adf24bfb3803a0420f710bf318afabf8949e
parent70f810bc7877918d09346673de6d4906c7f82f51 (diff)
downloadqcd-b3c735fb2f3c7ac648495b2c5beaf0d3e1adc411.tar.bz2
qcd.bash-completion: Remove path variables
Assume we'll get these from the main `qcd` script as currently they're sourced to the global environment. This way at least we're not repeating those lines in two places.
-rw-r--r--qcd.bash-completion4
1 files changed, 0 insertions, 4 deletions
diff --git a/qcd.bash-completion b/qcd.bash-completion
index c42d077..c8dfc56 100644
--- a/qcd.bash-completion
+++ b/qcd.bash-completion
@@ -1,9 +1,5 @@
# Bash completion for the qcd() function
-XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-"${HOME}/.config"}
-QCD_CONFIG_DIR=${QCD_CONFIG_DIR:-"${XDG_CONFIG_HOME}/qcd"}
-QCD_DATABASE_FILE=${QCD_DATABASE_FILE:-"${QCD_CONFIG_DIR}/database"}
-
_qcd () {
local cur
local shortcuts=$(awk '{ print $1 }' $QCD_DATABASE_FILE)