Since python3, the SimpleHTTPServer has been merged as its stated in the [docs](https://docs.python.org/2/library/simplehttpserver.html):
> The SimpleHTTPServer module has been merged into http.server in Python 3. The 2to3 tool will automatically adapt imports when converting your sources to Python 3.
Most systems alias/redirect "python" to the latest python installed:
```
❯❯❯ file /usr/bin/python
/usr/bin/python: symbolic link to `python3'
```
They also kept a `python{2,3}`, depending on the major version even if only one is installed. So, in a system with only `python 2.x, with this change it should still work.
(Another alternative would be run `python2 -m SimpleHTTPServer`.
If `GPG_AGENT_PID` is unset, grep will succeed if another gpg-agent is
running as it will match the string `gpg-agent` where the PID was an
empty string. Set a default value for grep to a value that will never
match if unset, i.e. -1.
If `SSH_AGENT_PID` is unset, grep will succeed if another ssh-agent is
running as it will match the string `ssh-agent` where the PID was an
empty string. Set a default value for grep to a value that will never
match if unset, i.e. -1.
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
This is done to make it easier to not show node-info in themes
when no node version is currently in use. This is consistent with
how the Python module's python-info works.
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
unrar and rar will discard everything up to the file name when extracting
with `e`. This breaks extraction of archives that have files with duplicate
file names and ones where the paths are important. The `x` command
extracts with the full path instead.
When Emacs and Vim are launched from outside of an interactive shell,
$TMUX and $STY are not set; check for Emacs and Vim environment
variables instead.
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>