This commit is contained in:
2025-11-30 13:34:37 +02:00
parent 874dec7503
commit cb3fa0e378
8 changed files with 28 additions and 11 deletions

View File

@@ -21,8 +21,9 @@ set -gx CLIPPY_CONF_DIR $XDG_DATA_HOME/cargo/
set -gx fish_user_paths ~/.local/bin $CARGO_HOME/bin
# -agx is a bad idea as login shell itself also does it
set -gx WINEPATH /usr/x86_64-w64-mingw32/bin
# set -gx WINEPATH /usr/x86_64-w64-mingw32/bin
# set -gx CPATH /usr/x86_64-w64-mingw32/include
set -gx WINEPATH /opt/llvm-mingw/x86_64-w64-mingw32/bin/
set -gx BROWSER librewolf # for fish documentation mainly

View File

@@ -1,3 +1,3 @@
function chat --wraps='ollama run --nowordwrap' --description 'Run an llm without history'
function chat --wraps 'ollama run --nowordwrap' --description 'Run an llm without history'
OLLAMA_NOHISTORY=y ollama run --nowordwrap $argv
end

View File

@@ -1,3 +1,3 @@
function la --wraps 'ls' --description 'List all files in directory using verbose format'
ls -lAh --group-directories-first $argv
function la --wraps ls --description 'List all files in directory using verbose format'
ll -A --group-directories-first $argv
end

View File

@@ -1,3 +1,9 @@
function ll --wraps 'ls' --description 'List contents of directory using long format'
ls -lh --group-directories-first $argv
if command -q eza
function ll --wraps ls --description 'List contents of directory using long format'
ls -l $argv
end
else
function ll --wraps ls --description 'List contents of directory using long format'
ls -lh --group-directories-first $argv
end
end

View File

@@ -0,0 +1,10 @@
if command -q eza
set -gx EZA_MIN_LUMINANCE 60
function ls --wraps eza
command eza -w 80 --icons --group-directories-last \
--color-scale -g --smart-group --time-style '+%g.%m.%d
%m.%d %H:%M' -M $argv
end
else
status get-file functions/ls.fish | source
end

View File

@@ -1,4 +1,4 @@
function remux --wraps=ffmpeg --description 'remux to mp4'
function remux --wraps ffmpeg --description 'remux to mp4'
mkdir -p /tmp/remux
# download file if input path is a url

View File

@@ -1,6 +1,6 @@
if command -q eza
function tree --wraps='eza'
command eza -T --group-directories-last $argv
function tree --wraps eza
ls -T $argv
end
else if command -q tree
function tree

View File

@@ -279,8 +279,8 @@ map kitty_mod+c copy_to_clipboard
map kitty_mod+y open_url_with_hints
map kitty_mod+s launch librewolf --search "@selection"
map ctrl+alt+s launch --stdin-source=@selection --type=tab nvim
map kitty_mod+p kitten hints --type path --program nemo
map ctrl+alt+p kitten hints --type hyperlink --program nemo
map kitty_mod+p kitten hints --type path --program yazi
map ctrl+alt+p kitten hints --type hyperlink --program yazi
map kitty_mod+/ show_kitty_doc overview
map kitty_mod+equal change_font_size all +1.0