diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-10-30 09:14:27 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-10-30 09:14:27 +1300 |
commit | 217a2f3e74c21b510ccb4ca37c455ecaae214d70 (patch) | |
tree | b4d91da66269c68d1eb066811f02cc7834d354a5 /bash | |
parent | Don't force end-of-options in hgrep (diff) | |
download | dotfiles-217a2f3e74c21b510ccb4ca37c455ecaae214d70.tar.gz dotfiles-217a2f3e74c21b510ccb4ca37c455ecaae214d70.zip |
Remove misfeature
Very seldom actually going to use this
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc.d/prompt.bash | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index e96d9b24..2cf8055a 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -14,7 +14,7 @@ prompt() { on) # Set up pre-prompt command and prompt format PROMPT_COMMAND='declare -i PROMPT_RETURN=$? ; history -a' - PS1='[\u@\h:\w]$(prompt nice)$(prompt job)$(prompt vcs)$(prompt ret)\$' + PS1='[\u@\h:\w]$(prompt job)$(prompt vcs)$(prompt ret)\$' # If Bash 4.0 is available, trim very long paths in prompt if ((BASH_VERSINFO[0] >= 4)) ; then @@ -244,18 +244,6 @@ prompt() { fi ;; - # Show the nice level of the current process with a circumflex (/proc - # systems only) - nice) - if [[ -r /proc/"$$"/stat ]] ; then - read -r _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ nice _ \ - < /proc/"$$"/stat - if ((nice != 0)) ; then - printf '^%d' "$nice" - fi - fi - ;; - # Print error *) printf '%s: Unknown command %s\n' "$FUNCNAME" "$1" >&2 @@ -264,7 +252,7 @@ prompt() { } # Complete words -complete -W 'on off git hg svn vcs ret job nice' prompt +complete -W 'on off git hg svn vcs ret job' prompt # Start with full-fledged prompt prompt on |