dotfiles/.config/fish/config.fish

57 lines
1.7 KiB
Fish
Raw Normal View History

2022-08-24 11:09:22 +00:00
### EXPORT ###
set fish_greeting # Supresses fish's intro message
set TERM "xterm-256color" # Sets the terminal type
set EDITOR "nvim" # $EDITOR use nvim in terminal
set VISUAL "neovide" # $VISUAL use neovide in GUI mode
2023-01-06 22:37:16 +00:00
source $HOME/.config/fish/completions/*
2022-08-24 11:09:22 +00:00
source $HOME/.config/fish/functions/functions.fish # Loads the functions file
2023-04-15 00:45:02 +00:00
source $HOME/.config/shell/aliases.sh # Loads the aliases file
2023-03-03 19:39:51 +00:00
source $HOME/.config/nnn/config.sh
2022-08-24 11:09:22 +00:00
2023-01-06 22:37:16 +00:00
export GTK_IM_MODULE="fcitx"
export QT_IM_MODULE="fcitx"
export SDL_IM_MODULE="fcitx"
export XMODIFIERS="@im=fcitx"
2022-08-24 11:09:22 +00:00
### SET MANPAGER
### Uncomment only one of these!
### "bat" as manpager
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
### "vim" as manpager
# 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)"'
### "nvim" as manpager
# set -x MANPAGER "nvim -c 'set ft=man' -"
if status is-interactive
# Commands to run in interactive sessions can go here
end
# Vi mode
function fish_user_key_bindings
# fish_default_key_bindings
fish_vi_key_bindings
end
### AUTOCOMPLETE AND HIGHLIGHT COLORS ###
set fish_color_normal brcyan
set fish_color_autosuggestion '#7d7d7d'
set fish_color_command brcyan
set fish_color_error '#ff6c6b'
set fish_color_param brcyan
### SETTING THE STARSHIP PROMPT ###
starship init fish | source
2023-03-03 19:39:51 +00:00
thefuck --alias | source
2023-04-15 00:45:02 +00:00
# pnpm
set -gx PNPM_HOME "/home/anas/.local/share/pnpm"
if not string match -q -- $PNPM_HOME $PATH
set -gx PATH "$PNPM_HOME" $PATH
end
# pnpm end