fish: fixup

This commit is contained in:
Daniel Lundin 2024-05-12 11:25:11 +02:00
parent 58837c4f50
commit 67e454b615
No known key found for this signature in database
2 changed files with 19 additions and 13 deletions

View file

@ -1,6 +1,6 @@
abbr --add b git branch -va abbr --add b git branch -va
abbr --add d git diff --stat -p -C --color-words abbr --add d git diff --stat -p -C --color-words
abbr --add new git checkout --detach main abbr --add new git checkout --detach main
abbr --add s git st abbr --add s git status -sb
abbr --add sl git branchless smartlog abbr --add sl git branchless smartlog
abbr --add sw git branchless switch --interactive abbr --add sw git branchless switch --interactive

View file

@ -1,31 +1,35 @@
set fish_greeting set fish_greeting
set fish_emoji_width 2
fish_add_path $HOME/.cargo/bin fish_add_path $HOME/.cargo/bin
fish_add_path $HOME/bin fish_add_path $HOME/bin
## Nix ## Nix
export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive set -gx LOCALE_ARCHIVE /usr/lib/locale/locale-archive
export NIX_REMOTE=daemon set -gx NIX_REMOTE daemon
fish_add_path $HOME/.nix-profile/bin fish_add_path $HOME/.nix-profile/bin
if status is-interactive if status is-interactive
## Pager ## Pager
export LESS="--mouse --wheel-lines=1 -nRXF" set -gx LESS "--mouse --wheel-lines=1 -nRXF"
export LESSCOLORIZER="bat" set -gx LESSCOLORIZER bat
export LESSOPEN="|lesspipe.sh %s" set -gx LESSOPEN "|lesspipe.sh %s"
export PAGER="bat" set -gx PAGER bat
export BAT_PAGER="less -r" set -gx BAT_PAGER "less -r"
## OpenTelemetry ## OpenTelemetry
export OTEL_EXPORTER_OTLP_ENDPOINT=https://otel.aarn.shelman.io set -gx OTEL_EXPORTER_OTLP_ENDPOINT https://otel.aarn.shelman.io
export OTEL_RESOURCE_ATTRIBUTES=instance=dln-dev set -gx OTEL_RESOURCE_ATTRIBUTES instance=dln-dev
export OTEL_LOG_LEVEL=debug set -gx OTEL_LOG_LEVEL debug
## Utilities ## Utilities
export EDITOR=nvim set -gx EDITOR (which nvim)
set -gx VISUAL $EDITOR
set -gx SUDO_EDITOR $EDITOR
function tree function tree
eza --tree --color=always $argv | bat --wrap=never eza --tree --color=always $argv | bat --wrap=never
@ -59,6 +63,8 @@ if status is-interactive
# FIXME: how to use autin history for these? # FIXME: how to use autin history for these?
bind \cn history-prefix-search-forward bind \cn history-prefix-search-forward
bind \cp history-prefix-search-backward bind \cp history-prefix-search-backward
# bind \cP _atuin_bind_up
bind \cJ forward-char
atuin init fish | source atuin init fish | source
end end