aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-02-20 18:43:54 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-02-20 18:43:54 -0800
commit12095c721cda000af6a801c0824a3345ffad7a79 (patch)
treef47dfc6458b8858eca2299386db85f403b10d389
parent7b873179adbfb0f0f1fcf9a1e746734f4ae6d38b (diff)
Remove unnecessary eval in __fish_complete_cd
-rw-r--r--share/functions/__fish_complete_cd.fish4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/functions/__fish_complete_cd.fish b/share/functions/__fish_complete_cd.fish
index 736ff83c..f54b5aaa 100644
--- a/share/functions/__fish_complete_cd.fish
+++ b/share/functions/__fish_complete_cd.fish
@@ -17,7 +17,7 @@ function __fish_complete_cd -d "Completions for the cd command"
# Note how this works: we evaluate $ctoken*/
# That trailing slash ensures that we only expand directories
- set -l ctoken (commandline -ct)
+ set -l ctoken (commandline -ct)
if echo $ctoken | sgrep '^/\|^\./\|^\.\./\|^~/' >/dev/null
# This is an absolute search path
# Squelch descriptions per issue 254
@@ -32,7 +32,7 @@ function __fish_complete_cd -d "Completions for the cd command"
# in case the CDPATH directory is relative
builtin cd $wd
- eval builtin cd $i
+ builtin cd $i
# What we would really like to do is skip descriptions if all
# valid paths are in the same directory, but we don't know how to