This commit is contained in:
2025-11-28 14:47:00 +02:00
parent 8b150916ff
commit 874dec7503
13 changed files with 51 additions and 28 deletions
+11 -12
View File
@@ -1,20 +1,21 @@
set -gx XDG_CONFIG_HOME ~/.config
set -gx XDG_CACHE_HOME ~/.cache
set -gx XDG_STATE_HOME ~/.local/state
set -gx XDG_DATA_HOME ~/.local/share
set -gx XDG_CONFIG_HOME ~/.config
set -gx XDG_CACHE_HOME ~/.cache
set -gx XDG_STATE_HOME ~/.local/state
set -gx XDG_DATA_HOME ~/.local/share
set -gx XDG_MUSIC_DIR ~/music
set -gx XDG_VIDEOS_DIR ~/vid
set -gx XDG_PICTURES_DIR ~/pic
set -gx XDG_DOCUMENTS_DIR ~/doc
set -gx XDG_MUSIC_DIR ~/music
set -gx XDG_VIDEOS_DIR ~/vid
set -gx XDG_PICTURES_DIR ~/pic
set -gx XDG_DOCUMENTS_DIR ~/doc
set -gx XDG_DESKTOP_DIR /tmp
set -gx XDG_DOWNLOAD_DIR /tmp
set -gx XDG_DESKTOP_DIR /tmp
set -gx XDG_DOWNLOAD_DIR /tmp
# set -gx XDG_TEMPLATES_DIR "$HOME/"
# set -gx XDG_PUBLICSHARE_DIR "$HOME/"
set -gx GOPATH $XDG_DATA_HOME/go # GOOUT my home
set -gx CARGO_HOME $XDG_DATA_HOME/cargo
set -gx CLIPPY_CONF_DIR $XDG_DATA_HOME/cargo/
# Can't use '~' in universal variables
set -gx fish_user_paths ~/.local/bin $CARGO_HOME/bin
@@ -29,7 +30,6 @@ set -gx BROWSER librewolf # for fish documentation mainly
set -gx SCREENSHOT_DIR $XDG_PICTURES_DIR/screen
set -gx SCREENRECORD_DIR $XDG_VIDEOS_DIR/screen
# Find an editor
for e in helix nvim vim vi nano
type -q $e; or continue
@@ -38,7 +38,6 @@ for e in helix nvim vim vi nano
end
type -q nvim; and set -gx MANPAGER nvim +Man!
test -S ~/.bitwarden-ssh-agent.sock
and set -gx SSH_AUTH_SOCK ~/.bitwarden-ssh-agent.sock
+2 -1
View File
@@ -1 +1,2 @@
zoxide init fish | source
command -q zoxide; and command zoxide init fish | source
command -q direnv; and command direnv hook fish | source
+1 -1
View File
@@ -5,7 +5,7 @@ function remux --wraps=ffmpeg --description 'remux to mp4'
if string match -qr '^(https?://|youtu\.?be|[a-zA-Z0-9]{11}$)' $argv[1]
set argv[1] (yt-dlp -q --force-overwrites --print after_move:filepath \
-f 'bestvideo[height<=?1080][vcodec!=?av01]+bestaudio/best' \
-o "/tmp/remux/download.%(ext)s" $argv[1])
-o '/tmp/remux/download.%(ext)s' $argv[1])
or return
end
+12 -2
View File
@@ -1,3 +1,13 @@
function tree
command tree -C --dirsfirst $argv
if command -q eza
function tree --wraps='eza'
command eza -T --group-directories-last $argv
end
else if command -q tree
function tree
command tree -C --filesfirst $argv
end
else
function tree
ls -l --group-directories-first
end
end