config.fish 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ### EXPORT ###
  2. set fish_greeting # Supresses fish's intro message
  3. set TERM "xterm-256color" # Sets the terminal type
  4. set EDITOR "nvim" # $EDITOR use nvim in terminal
  5. set VISUAL "neovide" # $VISUAL use neovide in GUI mode
  6. source $HOME/.config/fish/completions/*
  7. source $HOME/.config/fish/functions/functions.fish # Loads the functions file
  8. source $HOME/.config/shell/aliases.sh # Loads the aliases file
  9. clear
  10. source $HOME/.config/nnn/config.sh
  11. export GTK_IM_MODULE="fcitx"
  12. export QT_IM_MODULE="fcitx"
  13. export SDL_IM_MODULE="fcitx"
  14. export XMODIFIERS="@im=fcitx"
  15. ### SET MANPAGER
  16. ### Uncomment only one of these!
  17. ### "bat" as manpager
  18. set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
  19. ### "vim" as manpager
  20. # set -x MANPAGER '/bin/bash -c "vim -MRn -c \"set buftype=nofile showtabline=0 ft=man ts=8 nomod nolist norelativenumber nonu noma\" -c \"normal L\" -c \"nmap q :qa<CR>\"</dev/tty <(col -b)"'
  21. ### "nvim" as manpager
  22. # set -x MANPAGER "nvim -c 'set ft=man' -"
  23. if status is-interactive
  24. # Commands to run in interactive sessions can go here
  25. end
  26. # Vi mode
  27. function fish_user_key_bindings
  28. # fish_default_key_bindings
  29. fish_vi_key_bindings
  30. end
  31. ### AUTOCOMPLETE AND HIGHLIGHT COLORS ###
  32. set fish_color_normal brcyan
  33. set fish_color_autosuggestion '#7d7d7d'
  34. set fish_color_command brcyan
  35. set fish_color_error '#ff6c6b'
  36. set fish_color_param brcyan
  37. ### SETTING THE STARSHIP PROMPT ###
  38. # starship init fish | source
  39. # thefuck --alias | source
  40. # pnpm
  41. set -gx PNPM_HOME "/home/anas/.local/share/pnpm"
  42. if not string match -q -- $PNPM_HOME $PATH
  43. set -gx PATH "$PNPM_HOME" $PATH
  44. end
  45. # pnpm end
  46. # Auto run
  47. echo "Don't worry I'm here for you <3"
  48. oh-my-posh init fish --config ~/.config/ohmyposh/1_shell.omp.json | source