Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.96 KB | None | 0 0
  1. diff --git etc/zsh/zshrc etc/zsh/zshrc
  2. index 83dc68b..773b453 100644
  3. --- etc/zsh/zshrc
  4. +++ etc/zsh/zshrc
  5. @@ -303,6 +303,7 @@ BATTERY=${BATTERY:-0}
  6.  GRMLSMALL_SPECIFIC=${GRMLSMALL_SPECIFIC:-1}
  7.  GRML_ALWAYS_LOAD_ALL=${GRML_ALWAYS_LOAD_ALL:-0}
  8. diff --git etc/zsh/zshrc etc/zsh/zshrc
  9. index 83dc68b..773b453 100644
  10. --- etc/zsh/zshrc
  11. +++ etc/zsh/zshrc
  12. @@ -303,6 +303,7 @@ BATTERY=${BATTERY:-0}
  13.  GRMLSMALL_SPECIFIC=${GRMLSMALL_SPECIFIC:-1}
  14.  GRML_ALWAYS_LOAD_ALL=${GRML_ALWAYS_LOAD_ALL:-0}
  15.  ZSH_NO_DEFAULT_LOCALE=${ZSH_NO_DEFAULT_LOCALE:-0}
  16. +PATH_LENGTH=${PATH_LENGTH:-40}
  17.  
  18.  # }}}
  19.  
  20. @@ -2118,7 +2119,7 @@ fi
  21.  
  22.  # don't use colors on dumb terminals (like emacs):
  23.  if [[ "$TERM" == dumb ]] ; then
  24. -    PROMPT="${EXITCODE}${debian_chroot:+($debian_chroot)}%n@%m %40<...<%B%~%b%<< "
  25. +    PROMPT="${EXITCODE}${debian_chroot:+($debian_chroot)}%n@%m %${PATH_LENGTH}<...<%B%~%b%<< "
  26.  else
  27.      # only if $GRMLPROMPT is set (e.g. via 'GRMLPROMPT=1 zsh') use the extended prompt
  28.      # set variable identifying the chroot you work in (used in the prompt below)
  29. @@ -2128,9 +2129,9 @@ ${BLUE}%n${NO_COLOUR}@%m %40<...<%B%~%b%<< "
  30.     else
  31.         # This assembles the primary prompt string
  32.         if (( EUID != 0 )); then
  33. -            PROMPT="${RED}${EXITCODE}${WHITE}${debian_chroot:+($debian_chroot)}${BLUE}%n${NO_CO
  34. +            PROMPT="${RED}${EXITCODE}${WHITE}${debian_chroot:+($debian_chroot)}${BLUE}%n${NO_CO
  35.         else
  36. -            PROMPT="${BLUE}${EXITCODE}${WHITE}${debian_chroot:+($debian_chroot)}${RED}%n${NO_CO
  37. +            PROMPT="${BLUE}${EXITCODE}${WHITE}${debian_chroot:+($debian_chroot)}${RED}%n${NO_CO
  38.         fi
  39.     fi
  40. fi
  41. @@ -2143,7 +2144,7 @@ fi
  42.  
  43. # if we are inside a grml-chroot set a specific prompt theme
  44. if [[ -n "$GRML_CHROOT" ]] ; then
  45. -    PROMPT="%{$fg[red]%}(CHROOT) %{$fg_bold[red]%}%n%{$fg_no_bold[white]%}@%m %40<...<%B%~%b%<<
  46. +    PROMPT="%{$fg[red]%}(CHROOT) %{$fg_bold[red]%}%n%{$fg_no_bold[white]%}@%m %${path_lenght}<.
  47. fi
  48. # }}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement