This commit is contained in:
2025-12-23 20:34:05 +01:00
parent 5ad8af0275
commit 878aee5690
4 changed files with 51 additions and 25 deletions
+3 -1
View File
@@ -1,4 +1,4 @@
abbr -a -- cd z #abbr -a -- cd z
abbr -a -- opc opencode abbr -a -- opc opencode
abbr -a -- opcc opencode -c abbr -a -- opcc opencode -c
abbr -a -- cl clear abbr -a -- cl clear
@@ -7,6 +7,8 @@ abbr -a -- l ezals
abbr -a -- ll 'ezals -TL2' abbr -a -- ll 'ezals -TL2'
abbr -a -- q exit abbr -a -- q exit
abbr -a -- v nvim abbr -a -- v nvim
abbr -a -- vs nvim --server /tmp/nvim-server.sock
abbr -a -- vo nvim --server /tmp/nvim-server.sock --remote-tab
abbr -a -- kc kubectl abbr -a -- kc kubectl
abbr -a -- kcc kubectl ctx abbr -a -- kcc kubectl ctx
abbr -a -- zj zellij abbr -a -- zj zellij
+32 -16
View File
@@ -5,6 +5,9 @@ set -gx EDITOR nvim
set -gx KUBE_EDITOR nvim set -gx KUBE_EDITOR nvim
set -g TERM xterm-256color set -g TERM xterm-256color
# For enable nvim server, first instance become the listener
#set -gx NVIM_LISTEN_ADDRESS /tmp/nvim-server.sock
# Set correct TERM and TERMINAL for kitty # Set correct TERM and TERMINAL for kitty
set -gx TERM xterm-kitty set -gx TERM xterm-kitty
set -gx TERMINAL kitty set -gx TERMINAL kitty
@@ -13,6 +16,12 @@ if status is-interactive
# Commands to run in interactive sessions can go here # Commands to run in interactive sessions can go here
fish_vi_key_bindings fish_vi_key_bindings
# Disable flow control (Ctrl+S/Ctrl+Q) to prevent terminal freeze
# stty -ixon
# Handle spurious cursor position reports that might appear in prompt
# This happens when background jobs query the terminal
# Ctrl-o Find a file. # Ctrl-o Find a file.
# Ctrl-r Search through command history. # Ctrl-r Search through command history.
# Alt-c cd into sub-directories (recursively searched). # Alt-c cd into sub-directories (recursively searched).
@@ -20,24 +29,31 @@ if status is-interactive
# Alt-o Open a file/dir using default editor ($EDITOR) # Alt-o Open a file/dir using default editor ($EDITOR)
# Alt-Shift-o Open a file/dir using xdg-open or open command # Alt-Shift-o Open a file/dir using xdg-open or open command
set -g fish_sequence_key_delay_ms 200 set -g fish_sequence_key_delay_ms 200
bind -M insert -m default j,k cancel repaint-mode bind -M insert -m default j,k cancel repaint-mode
bind -M insert \cn \\t bind -M insert \cn \\t
set -q KREW_ROOT; and set -gx PATH $PATH $KREW_ROOT/.krew/bin; or set -gx PATH $PATH $HOME/.krew/bin set -q KREW_ROOT; and set -gx PATH $PATH $KREW_ROOT/.krew/bin; or set -gx PATH $PATH $HOME/.krew/bin
# Check max tmux window in the Home session and open the Home session in a new tmux window set -U autovenv_enable yes
# Find max window number in the Home session set -U autovenv_announce no
#if test -z "$TMUX"; set -U autovenv_dir .venv
# # set name "$(date '+%Y%m%d_%H%M%S')" # Check max tmux window in the Home session and open the Home session in a new tmux window
# # exec flock -w 1 -F -n "/tmp/zellij-$name" zellij -s "$name" # Find max window number in the Home session
# exec tmux #if test -z "$TMUX";
#end # # set name "$(date '+%Y%m%d_%H%M%S')"
# if test -z "$ZELLIJ"; # # exec flock -w 1 -F -n "/tmp/zellij-$name" zellij -s "$name"
# # set name "$(date '+%Y%m%d_%H%M%S')" # exec tmux
# # exec flock -w 1 -F -n "/tmp/zellij-$name" zellij -s "$name" #end
# exec zellij # if test -z "$ZELLIJ";
# end # # set name "$(date '+%Y%m%d_%H%M%S')"
# # exec flock -w 1 -F -n "/tmp/zellij-$name" zellij -s "$name"
# exec zellij
# end
end end
fish_add_path /home/df/.opencode/bin fish_add_path /home/df/.opencode/bin
# Added by LM Studio CLI (lms)
set -gx PATH $PATH /home/df/.lmstudio/bin
# End of LM Studio CLI section
+1 -1
View File
@@ -1,3 +1,3 @@
function ezals --wraps='eza --icons --git --no-user --octal-permissions --no-permissions --group-directories-first -s name -lah' --description 'Base exa' function ezals --wraps='eza --icons --git --no-user --octal-permissions --no-permissions --group-directories-first -s name -lah' --description 'Base exa'
eza --icons --git --no-user --octal-permissions --no-permissions --group-directories-first -s name -lah $argv eza --icons --git --no-user --octal-permissions --no-permissions --group-directories-first -s name --hyperlink -lah $argv
end end
+15 -7
View File
@@ -51,11 +51,19 @@ function fish_prompt --description 'Write out the prompt'
printf '%s ' (fish_vcs_prompt) printf '%s ' (fish_vcs_prompt)
set -l status_color (set_color $fish_color_status) set -l status_color (set_color $fish_color_status)
set -l statusb_color (set_color --bold $fish_color_status) set -l statusb_color (set_color --bold $fish_color_status)
set -l prompt_status (__fish_print_pipestatus "[" "]" "|" "$status_color" "$statusb_color" $last_pipestatus) set -l prompt_status (__fish_print_pipestatus "[" "]" "|" "$status_color" "$statusb_color" $last_pipestatus)
echo -n $prompt_status echo -n $prompt_status
set_color normal set_color normal
echo -n "$suffix " # Background jobs counter
set -l jobs_count (count (jobs -p))
if test $jobs_count -gt 0
set_color yellow
echo -n "[$jobs_count] "
set_color normal
end
echo -n "$suffix "
end end