summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2024-11-30 14:03:05 +0200
committerSyndamia <kamen@syndamia.com>2024-11-30 14:03:05 +0200
commit753f8d370e9986571ddbf551ae50cbab5cb18417 (patch)
tree64823cf364054cfc91996edca5a8dedf3deac6ba /.bashrc
parent8e22a7be6a70fb6e359e19fc2bf51270db6f8bc0 (diff)
downloaddotfiles-753f8d370e9986571ddbf551ae50cbab5cb18417.tar
dotfiles-753f8d370e9986571ddbf551ae50cbab5cb18417.tar.gz
dotfiles-753f8d370e9986571ddbf551ae50cbab5cb18417.zip
fix(bash): Do not replace input with "/" when it isn't valid for completion
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 4344928..b5e2b22 100644
--- a/.bashrc
+++ b/.bashrc
@@ -247,6 +247,7 @@
while IFS= read line
do
+ [ -z "$line" ] && continue
line="${line##"$HOME"/Programming/"$_folder"/}/"
line="${line// /\\ }"
COMPREPLY+=("$line")