diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-03-08 12:20:34 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-03-08 12:20:34 -0500 |
| commit | 0df395c840dd6d197aef305bf3f431559cfd8e86 (patch) | |
| tree | 81d9eb4d7bff8cd78b275d74ed5f4b0b5aac73f8 /mkshrc | |
| parent | c9c202aada089e408b6fd9c79b224aa46a18374a (diff) | |
| download | dotfiles-0df395c840dd6d197aef305bf3f431559cfd8e86.tar.gz dotfiles-0df395c840dd6d197aef305bf3f431559cfd8e86.tar.xz | |
Fix newline problem with root shells and set the editor to 'vis-editor' if it's available
Diffstat (limited to 'mkshrc')
| -rw-r--r-- | mkshrc | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -65,15 +65,14 @@ set_prompt() { HOST_C="[38;5;196m" PATH_C="[38;5;27m" END_C="[38;5;196m" - END_P="$(printf '\n#')" set_root_ps1 + END_P="#" else BG="[1;40m" ACCENT_C="[0;31m" ACCENT_P="|" HOST_C="[1;31m" PATH_C="[1;33m" - END_P="$(printf '\n#')" END_P="#" fi set_root_ps1 @@ -605,7 +604,7 @@ colormanpages() { set_editor() { # export EDITOR="vi" - export EDITOR="$(which ed mg nano vi vim nvim 2>/dev/null | tail -n1)" + export EDITOR="$(which ed mg nano vi vim nvim vis-editor 2>/dev/null | tail -n1)" export VISUAL="$EDITOR" # Set an alias for our editor of choice |
