Christian Höltje
3fb0383956
Use SUDO_COMMAND to check for sudo
...
`sudo -n true` only checks that we _could_ use `sudo`, not if we are in
a sudo session.
closes #852
2018-08-10 10:41:01 -04:00
Christian Höltje
7f6ac8dbac
Use SUDO_COMMAND to check for sudo
...
`sudo -n true` only checks that we _could_ use `sudo`, not if we are in
a sudo session.
closes #852
2018-07-31 16:22:26 -04:00
Christian Höltje
a94df3ddcb
test-in-docker: resolve version and framework late
2018-06-27 16:52:38 -04:00
Christian Höltje
3c27414e7e
test-in-docker: lint from @dritter
2018-06-27 16:52:16 -04:00
Christian Höltje
83abdf742c
test-in-docker: add dry-run mode
2018-06-27 11:25:12 -04:00
Christian Höltje
89863209fc
test-in-docker: make vars sorted and readonly
...
Marking variables as readonly is helpful for debugging and preventing
problems.
2018-06-27 11:24:37 -04:00
Christian Höltje
645034f74c
test-in-docker: add additional warnings
2018-06-27 11:21:01 -04:00
Christian Höltje
69fe19ca74
test-in-docker: fix in zsh > 5.3
...
The way I was filtering out entries in the frameworks array stopped
working in newer versions of ZSH; it would convert the array into a
string (you could see it with `typeset -p frameworks`)
So I rewrote it.
I don't see anything in the release notes for ZSH that would explain
this and I didn't find any option that would restore this behavior.
Related: #882
2018-06-27 11:17:10 -04:00
Christian Höltje
fe33c401ba
workaround for ZSH status behavior
...
`$pipestatus` is returning all zeros when using `[[ ]]` expressions
that are false.
This works around it by using `$status` (A.K.A. `$?`) when `$pipestatus`
has only 1 items.
Fixes #749
2018-03-26 14:55:06 -04:00
Christian Höltje
cc4daa7698
Fix GIT and GITHUB nerdfont icon.
...
VCS_GIT_ICON and VCS_GIT_GITHUB_ICON were wrong.
2018-02-15 10:23:01 -05:00
Christian Höltje
87988cea26
getColor() must always print result
...
This was causing colors specified as numbers to not be shown.
2018-01-19 22:06:01 -05:00
Christian Höltje
f93ad073b7
status: show signal name
...
This makes signal exit status easy to understand. Instead of just
showing exit code "137", you now see "KILL(-9)".
Based on #580 by @sei40kr (thanks!)
2017-07-27 22:36:11 -04:00
Christian Höltje
be6c032025
rvm: handle -head, etc. more gracefully.
...
Closes #575
2017-07-26 23:39:49 -04:00
Christian Höltje
8626d07d60
Merge remote-tracking branch 'origin/master' into pr/merge-master
2017-07-13 00:42:15 -04:00
Christian Höltje
ecc6356e9d
test-in-docker: show known issues
2017-07-13 00:39:58 -04:00
Christian Höltje
2f808f8a4e
test-in-docker: Support for multiple ZSH versions
...
-z --zsh can specify one of the versions of ZSH we can get from
centos and ubuntu
2017-07-12 03:25:48 -04:00
Christian Höltje
aca0f31eb0
Replaced a sed call with pure ZSH
2017-07-12 01:02:46 -04:00
Christian Höltje
0fded47ab5
Added test for POWERLEVEL9K_HOME_FOLDER_ABBREVIATION
2017-07-12 00:54:30 -04:00
Christian Höltje
df318488c9
test-in-docker: quickly test frameworks in docker
...
This adds `./test-in-docker` for quickly playing with various frameworks.
All the containers are based off Ubuntu 14.04 which has ZSH 5.0.2.
Thanks to @dritter for figuring out all the framework installation
methods.
2017-07-11 20:41:46 -04:00
Christian Höltje
3bf0f18e26
Cleaned up installation directory detection
...
- Used ZSH built-in magic to get the installation directory.
- Works with symlinks.
- No longer calls out to external program 'dirname'.
- Fixed issue with spaces in the path.
- No longer leak the variables 'filename' and 'script_location'.
2017-07-11 20:29:01 -04:00
Christian Höltje
382c821539
teardown: reset PROMPT and RPROMPT
2017-05-12 22:15:26 -04:00
Christian Höltje
feb942d453
add function to disable powerlevel9k
...
Sometimes you have to disable your prompt. :-(
2017-05-12 22:15:26 -04:00
Christian Höltje
38d5f4d056
nvm: improve default detection
...
This is also (marginally) faster than before.
2017-05-12 22:14:44 -04:00
Christian Höltje
e9e3e9dc53
newline: support PROMPT_ON_NEWLINE
...
The newline segment will now show ├─ when using
`POWERLEVEL9K_PROMPT_ON_NEWLINE`
Note: This can be overridden via `POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX`
2017-05-12 22:14:01 -04:00
Christian Höltje
161c995625
newline: can't work with right side
2017-05-12 22:14:01 -04:00
Christian Höltje
1619c74ad8
newline: add new segment
2017-05-12 22:14:01 -04:00
Christian Höltje
25a6c3a4a8
pipestatus: default to true (on)
2017-05-12 22:13:37 -04:00
Christian Höltje
543bd2f844
status: add option for support pipes
...
Added new option (POWERLEVEL9K_STATUS_SHOW_PIPESTATUS) that shows
the status for all piped commands, not just the right-most.
Closes #514
2017-05-12 21:51:36 -04:00
Christian Höltje
ab8d6ae299
readme: typo
2017-05-04 02:47:55 -04:00