You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
2.4 KiB

  1. diff --git a/share/functions/prompt_hostname.fish b/share/functions/prompt_hostname.fish
  2. index 225f437c..dc7f1cf8 100644
  3. --- a/share/functions/prompt_hostname.fish
  4. +++ b/share/functions/prompt_hostname.fish
  5. @@ -1,4 +1,4 @@
  6. function prompt_hostname
  7. # return the short hostname only by default (#4804)
  8. - string replace -r "\..*" "" $hostname
  9. + string replace -r "\..*" "" (uname -n)
  10. end
  11. diff --git a/share/tools/web_config/sample_prompts/pythonista.fish b/share/tools/web_config/sample_prompts/pythonista.fish
  12. index 9529035c..57ffaf86 100644
  13. --- a/share/tools/web_config/sample_prompts/pythonista.fish
  14. +++ b/share/tools/web_config/sample_prompts/pythonista.fish
  15. @@ -7,7 +7,7 @@ function fish_prompt
  16. set -g VIRTUAL_ENV_DISABLE_PROMPT true
  17. end
  18. set_color yellow
  19. - printf '%s' (whoami)
  20. + printf '%s' (id -un)
  21. set_color normal
  22. printf ' at '
  23. diff --git a/share/tools/web_config/sample_prompts/screen_savvy.fish b/share/tools/web_config/sample_prompts/screen_savvy.fish
  24. index 411a5501..5cdcfb69 100644
  25. --- a/share/tools/web_config/sample_prompts/screen_savvy.fish
  26. +++ b/share/tools/web_config/sample_prompts/screen_savvy.fish
  27. @@ -2,8 +2,8 @@
  28. # author: Matthias
  29. function fish_prompt -d "Write out the prompt"
  30. if test -z $WINDOW
  31. - printf '%s%s@%s%s%s%s%s> ' (set_color yellow) (whoami) (set_color purple) (prompt_hostname) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
  32. + printf '%s%s@%s%s%s%s%s> ' (set_color yellow) (id -un) (set_color purple) (prompt_hostname) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
  33. else
  34. - printf '%s%s@%s%s%s(%s)%s%s%s> ' (set_color yellow) (whoami) (set_color purple) (prompt_hostname) (set_color white) (echo $WINDOW) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
  35. + printf '%s%s@%s%s%s(%s)%s%s%s> ' (set_color yellow) (id -un) (set_color purple) (prompt_hostname) (set_color white) (echo $WINDOW) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
  36. end
  37. end
  38. diff --git a/share/tools/web_config/sample_prompts/terlar.fish b/share/tools/web_config/sample_prompts/terlar.fish
  39. index d49ef340..59b3d267 100644
  40. --- a/share/tools/web_config/sample_prompts/terlar.fish
  41. +++ b/share/tools/web_config/sample_prompts/terlar.fish
  42. @@ -6,7 +6,7 @@ function fish_prompt --description 'Write out the prompt'
  43. # User
  44. set_color $fish_color_user
  45. - echo -n (whoami)
  46. + echo -n (id -un)
  47. set_color normal
  48. echo -n '@'