Skip to content

Commit

Permalink
chore(fish): update conf
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Dec 9, 2023
1 parent 335003a commit d486ced
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions home/isabel/programs/configs/cli/shells/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,26 @@ in {

shellInit = ''
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
${optionalString (osConfig.modules.device != "server") ''
set TERMINAL ${defaults.terminal}
export GPG_TTY=$(tty)
set -gx TERMINAL ${defaults.terminal}
set -x GPG_TTY (tty)
''};
${optionalString (osConfig.modules.device == "server") ''
set TERMINAL dumb
set TERM dumb
set -gx TERMINAL dumb
''};
switch $TERM
case '*xte*'
set -gx TERM xterm-256color
case '*scree*'
set -gx TERM screen-256color
case '*rxvt*'
set -gx TERM rxvt-unicode-256color
end
# themeing
set fish_greeting
export "MICRO_TRUECOLOR=1"
Expand Down

0 comments on commit d486ced

Please sign in to comment.