1SURFRAW-UPDATE-PATH(1)User Contributed Perl DocumentationSURFRAW-UPDATE-PATH(1)
2
3
4
6 surfraw-update-path - updates PATH in shell config files
7
9 surfraw-update-path [-add] [-remove] [-check] [-sys] [-all] [-help]
10 [-shell=SHELL]
11
13 surfraw-update-path adds the surfraw elvi directory
14 (/usr/libexec/surfraw) to your PATH in your shell's config file.
15
16 Currently it supports bash, sh, csh, tcsh, ash, dash, ksh, pdksh, zsh,
17 rc, and es
18
19 Don't forget to login again or source your login files for it to take
20 effect.
21
23 -check
24 Checks to see if the surfraw config code is present. This is the
25 default.
26
27 -add
28 Adds the surfraw config code.
29
30 -remove
31 Removes the surfraw config code
32
33 -sys
34 Updates the system-wide shell config instead of the user. Must be
35 done as root.
36
37 -shell=SHELL
38 Selects the shell to configure. Defaults to the value of the $SHELL
39 environment variable.
40
41 Currently supported shells are:
42
43 sh, ash, bash, dash, csh, tcsh, ksh, pdksh, zsh, rc, and es.
44
45 -all
46 Attempts to configure the startup files for all known shells
47
48 -help
49 Gives a usage message
50
52 -check returns 0 if the surfraw code is present in the file, 1 if it is
53 not found, or 2 on error.
54
55 All other options return 0 on success, or 2 on error.
56
58 SHELL
59 Used to determine which shell to configure, if -shell is not given.
60
61 HOME
62 Used to find users config files.
63
64 ENV Used by posix-compliant shells to specify a startup rc file.
65
66 ZDOTDIR
67 Used to find user config files for zsh. If not set, defaults to
68 HOME.
69
71 surfraw(1), sh(1), ash(1), bash(1), dash(1), csh(1), tcsh(1), ksh(1),
72 pdksh(1), zsh(1), rc(1), es(1)
73
75 Ian Beckwith <ianb@erislabs.net>
76
77
78
79perl v5.36.0 2022-07-23 SURFRAW-UPDATE-PATH(1)