ebrc - dotfiles - leot's dotfiles
(HTM) hg clone https://bitbucket.org/iamleot/dotfiles
(DIR) Log
(DIR) Files
(DIR) Refs
---
ebrc
---
1 # .ebrc: sample configuration file for edbrowse (version 3.5.4 or above)
2
3 # file of ssl certificates
4 certfile = /etc/openssl/certs/ca-certificates.crt
5
6 # wait 30 seconds for a response from a web server
7 webtimer = 30
8 # wait 3 minutes for a response from a mail server
9 #mailtimer = 180
10
11 # Describe the mime types and the plugins to run them.
12 #plugin {
13 #type = audio/basic
14 #desc = audio file in a wave format
15 #suffix = wav,voc,au,ogg
16 #content = audio/x-wav
17 ## %i is the temp input file generated by edbrowse
18 #program = play -q %i
19 #}
20
21 #plugin {
22 #type = audio/mp3
23 #desc = audio file in mp3 format
24 #suffix = mp3
25 #content = audio/mpeg
26 #program = mpg123 -q -C %i
27 #}
28
29 # this plugin renders a file, rather than "playing" the file.
30 #plugin {
31 #type = pdf
32 #desc = pdf file
33 #suffix = pdf
34 #content = application/pdf
35 #program = pdftohtml -i -noframes %i %o >/dev/null
36 # indicate the output is in html, rather than text
37 #outtype = H
38 #}
39
40 # Every time you fetch a web page from the internet,
41 # your browser identifies itself to the host.
42 agent = Lynx/2.8.4rel.1 libwww-FM/2.14
43 agent = Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90)
44
45 # Ok, we're ready to write our first script.
46 # How about a function to access google.
47 # So <gg elephants tigers will call up google,
48 # looking for elephants and tigers together.
49 function+gg {
50 b http://www.google.com
51 /<>/ i=~0
52 +i1*
53 /^1/
54 }
55
56 # mariam-webster dictionary lookup, ~1 is parameter 1, the word to look up.
57 # <mw elephant
58 function+mw {
59 b http://www.merriam-webster.com/dictionary/~1
60 }
61
62 # This function is run at edbrowse startup.
63 function:init {
64 # make directories writable, so you can rename or delete files
65 dw
66 # Display the size of each file in a directory listing
67 ls=s
68 # other personal settings
69 # readline
70 rl
71 # Display errors, not just a `?'
72 H
73 }
74
75 # Open current file via the PAGER
76 function+p {
77 !echo ',p' | edbrowse -e `echo '_ | sed -e "s/\.browse\$//"` | less -m -F -R -X
78 }
79
80 # and much more...