summary refs log tree commit diff
path: root/Completion/Unix/Command/_w3mhistory
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-10-27 11:17:29 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-10-27 11:17:29 +0000
commit026631ab818995ad480a9ea3e5a7ec243c645db1 (patch)
treeb014a0525153feffcbf8d97aa8b3f3353da5e251 /Completion/Unix/Command/_w3mhistory
parent112bfcfe46a0b5f2781f3b0131e25b78b0e9ed0c (diff)
downloadzsh-026631ab818995ad480a9ea3e5a7ec243c645db1.tar.gz
zsh-026631ab818995ad480a9ea3e5a7ec243c645db1.tar.xz
zsh-026631ab818995ad480a9ea3e5a7ec243c645db1.zip
zsh-users/6727 (Lloyd Zusman): improve _w3m
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