This project is mirrored from https://github.com/oh-my-fish/oh-my-fish.git.
Updated .
- 16 Jun, 2014 1 commit
-
-
James Hillyerd authored
- The proxy plugin would create broken environment variables if it was enabled but proxy_host was not defined.
-
- 12 Jun, 2014 21 commits
-
-
Bruno Pinto authored
-
James Hillyerd authored
-
James Hillyerd authored
-
James Hillyerd authored
-
James Hillyerd authored
-
James Hillyerd authored
-
James Hillyerd authored
- Cache hostname & prompt char - Use > instead of %
-
James Hillyerd authored
-
James Hillyerd authored
-
James Hillyerd authored
-
Bruno Pinto authored
-
James Hillyerd authored
-
James Hillyerd authored
-
James Hillyerd authored
- README updated with more information about the proxy environment varialbes - no_proxy/NO_PROXY removed from variables being set, it was being used incorrectly diff --git a/plugins/proxy/README.md b/plugins/proxy/README.md index 819d032..3086618 100644 --- a/plugins/proxy/README.md +++ b/plugins/proxy/README.md @@ -2,7 +2,14 @@ proxy plugin ============ The proxy plugin provides a couple helper functions to those of us who are -stuck behind HTTP/HTTPS/FTP proxies that require authentication. +stuck behind HTTP/HTTPS/FTP proxies that require authentication. The variables +it exports are used by many command-line and GUI applications on Linux, as well +as [MacPorts][1] and [Homebrew][2] on OS X. + +Both uppercase and lowercase versions of the proxy environment variables are +set, some applications are case sensitive. If you'd like to learn more about +the use of these variables, this [Arch Wiki Article][3] is a good place to +start. ## Usage @@ -28,7 +35,6 @@ The proxy plugin will prepend `http://` for you. Here's the result: ftp_proxy http://myproxy.example.com:8000 http_proxy http://myproxy.example.com:8000 https_proxy http://myproxy.example.com:8000 - no_proxy http://myproxy.example.com:8000 ### With authentication @@ -43,3 +49,7 @@ for a password and setup your environment. If you didn't setup a proxy_user variable, you will be prompted for a username. If you wish to clear your proxy variables, run `noproxy`. + +[1]: http://www.macports.org/ +[2]: http://brew.sh/ +[3]: https://wiki.archlinux.org/index.php/proxy_settings diff --git a/plugins/proxy/_proxy_set.fish b/plugins/proxy/_proxy_set.fish index b692bf0..e55d29e 100644 --- a/plugins/proxy/_proxy_set.fish +++ b/plugins/proxy/_proxy_set.fish @@ -1,8 +1,10 @@ function _proxy_set -a proxy \ -d "Set all proxy vars to specified value" - set -l envars http_proxy ftp_proxy https_proxy all_proxy no_proxy \ - HTTP_PROXY HTTPS_PROXY FTP_PROXY NO_PROXY ALL_PROXY + set -l envars http_proxy HTTP_PROXY \ + https_proxy HTTPS_PROXY \ + ftp_proxy FTP_PROXY \ + all_proxy ALL_PROXY for envar in $envars if test $proxy = '-e' set -e $envar
-
James Hillyerd authored
-
Bruno Pinto authored
-
Bruno Pinto authored
-
Bruno Pinto authored
-
Roman Inflianskas authored
-
Roman Inflianskas authored
-
Roman Inflianskas authored
-
- 11 Jun, 2014 3 commits
-
-
Bruno Pinto authored
-
Jean Mertz authored
Depends on `chruby-fish`: https://github.com/JeanMertz/chruby-fish set `CHRUBY_AUTO_ENABLED` to `false` to disable auto loading Ruby versions on directory change. set `CHRUBY_ROOT` to point to the root path of chruby. The path will be appended by `share/chruby/chruby.fish` and `share/chruby/auto.fish`.
-
Bruno authored
Add support for upcoming fish shell native vi mode
-
- 05 Jun, 2014 1 commit
-
-
syl20bnr authored
-
- 15 May, 2014 8 commits
-
-
Bruno Pinto authored
-
Justin Hileman authored
-
Justin Hileman authored
-
Bruno Pinto authored
-
CADBOT authored
-
Bruno authored
Minor updates for bobthefish
-
Justin Hileman authored
-
Justin Hileman authored
-
- 10 May, 2014 1 commit
-
-
Bruno authored
-
- 09 May, 2014 2 commits
- 06 May, 2014 3 commits
-
-
Bruno Pinto authored
-
Amio authored
-
Amio authored
-