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.

config.fish 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. set -x PATH $HOME/.local/bin $HOME/.nimble/bin $PATH
  2. set -x GPG_TTY (tty)
  3. set fish_prompt_pwd_dir_length 1
  4. set -e fish_greeting
  5. set fish_color_error red
  6. set fish_color_end red
  7. set fish_color_comment yellow
  8. set fish_color_quote yellow
  9. set fish_color_command green
  10. set fish_color_param cyan
  11. set fish_color_operator cyan
  12. set fish_color_redirection cyan
  13. fish_vi_key_bindings
  14. function ls
  15. command exa --group-directories-first -s Name $argv
  16. end
  17. function xr
  18. command sudo xbps-remove -R $argv
  19. end
  20. set default_sym △
  21. set insert_sym ▲
  22. set visual_sym ▸
  23. set replace_sym ◇
  24. function prompt_sym
  25. if not test $status = 0
  26. set_color red
  27. end
  28. if test "$fish_key_bindings" = "fish_vi_key_bindings"
  29. or test "$fish_key_bindings" = "fish_hybrid_key_bindings"
  30. switch $fish_bind_mode
  31. case default
  32. printf '%s' $default_sym
  33. case insert
  34. printf '%s' $insert_sym
  35. case replace_one
  36. printf '%s' $replace_sym
  37. case visual
  38. printf '%s' $visual_sym
  39. end
  40. end
  41. set_color normal
  42. end
  43. function fish_mode_prompt
  44. end
  45. function fish_prompt
  46. echo
  47. printf " %s %s%s " (prompt_sym) (set_color cyan) (prompt_pwd)
  48. end
  49. function fish_right_prompt
  50. printf "%s" (__fish_git_prompt)
  51. end