about summary refs log tree commit diff
path: root/Completion/Unix/Command/_w3mhistory
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_w3mhistory')
-rw-r--r--Completion/Unix/Command/_w3mhistory10
1 files changed, 10 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_w3mhistory b/Completion/Unix/Command/_w3mhistory
new file mode 100644
index 000000000..f0f944138
--- /dev/null
+++ b/Completion/Unix/Command/_w3mhistory
@@ -0,0 +1,10 @@
+#autoload
+
+local _w3mhistory
+
+if [[ -s ~/.w3m/history ]]; then
+   _w3mhistory=(${(f)"$(<$HOME/.w3m/history)"})
+   compadd $_w3mhistory
+fi
+
+_urls -f