···11+# Drop the greeting
22+set -g fish_greeting
33+14if status is-login; and not contains "$HOME/.local/bin" $PATH
22- set -gx PATH "$HOME/.local/bin:$PATH"
55+ set -gx PATH "$HOME/.local/bin:$PATH"
36end
4758if type -q ssh-agent
66- if not pgrep -u "$USER" ssh-agent > /dev/null
77- ssh-agent -c -t 1h > "$XDG_RUNTIME_DIR/ssh-agent-$USER.env"
88- end
99- if not set -q SSH_AUTH_SOCK
1010- eval $(cat "$XDG_RUNTIME_DIR/ssh-agent-$USER.env") > /dev/null
1111- end
99+ if not pgrep -u "$USER" ssh-agent >/dev/null
1010+ ssh-agent -c -t 1h >"$XDG_RUNTIME_DIR/ssh-agent-$USER.env"
1111+ end
1212+ if not set -q SSH_AUTH_SOCK
1313+ eval $(cat "$XDG_RUNTIME_DIR/ssh-agent-$USER.env") >/dev/null
1414+ end
1215end
13161417if status is-interactive
1515- fish_config theme choose dracula | source
1616- fish_config prompt choose scales | source
1818+ fish_config theme choose Dracula | source
1919+ fish_config prompt choose scales | source
17201818- if type -q helix
1919- set -gx EDITOR "helix"
2020- alias hx="helix"
2121- else if type -q vim
2222- set -gx EDITOR "vim"
2323- end
2424- set -gx VISUAL "$EDITOR"
2121+ if type -q hx
2222+ set -gx EDITOR hx
2323+ else if type -q helix
2424+ set -gx EDITOR helix
2525+ alias hx="helix"
2626+ else if type -q vim
2727+ set -gx EDITOR vim
2828+ end
2929+ set -gx VISUAL "$EDITOR"
25302626- if type -q zoxide
2727- zoxide init fish | source
2828- alias cd="z"
2929- end
3131+ if type -q zoxide
3232+ zoxide init fish | source
3333+ alias cd="z"
3434+ end
30353131- if type -q eza
3232- alias ls="eza -lah --color --group-directories-first"
3333- else
3434- alias ls="ls -lah --color --group-directories-first"
3535- end
3636+ if type -q eza
3737+ alias ls="eza -lah --color --group-directories-first"
3838+ else
3939+ alias ls="ls -lah --color --group-directories-first"
4040+ end
36413737- # For versioning my config files.
3838- # See: https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/
3939- if set -q XDG_CONFIG_HOME
4040- alias config="/usr/bin/git --git-dir=$XDG_CONFIG_HOME/.cfg/ --work-tree=$HOME"
4141- else
4242- alias config="/usr/bin/git --git-dir=$HOME/.config/.cfg/ --work-tree=$HOME"
4343- end
4242+ # For versioning my config files.
4343+ # See: https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/
4444+ if set -q XDG_CONFIG_HOME
4545+ alias config="/usr/bin/env git --git-dir=$XDG_CONFIG_HOME/.cfg/ --work-tree=$HOME"
4646+ else
4747+ alias config="/usr/bin/env git --git-dir=$HOME/.config/.cfg/ --work-tree=$HOME"
4848+ end
4449end
45504646-if type -q freshfetch
4747- freshfetch
4848-else if type -q neofetch
4949- neofetch
5151+# Only show freshfetch or neofetch when not in a tmux session
5252+if not set -q TMUX
5353+ if type -q freshfetch
5454+ freshfetch
5555+ else if type -q neofetch
5656+ neofetch
5757+ end
5058end
51595260if test -e "$HOME/.config/fish/custom.fish"
+1-1
.config/foot/foot.ini
···77foreground=ffffff
8899[url]
1010-launch=/usr/bin/handlr open {url}
1010+launch=/usr/bin/env handlr open {url}
···11-#!/usr/bin/python
11+#!/usr/bin/env python
2233# Basic script to sync installed Steam games and the *.desktop files used by
44# application launchers. Relies on having played the game at least once.
+8-2
.local/bin/xdg-open
···11-#!/bin/sh
11+#!/usr/bin/env bash
2233-handlr open "$@"
33+if ! command -v handlr >/dev/null 2>&1; then
44+ handlr open "$@"
55+elif [[ -e /etc/NIXOS ]]; then
66+ /run/current-system/sw/bin/xdg-open "$@"
77+else
88+ /usr/bin/xdg-open "$@"
99+fi
+1-1
.local/share/applications/userapp-BlueSky.desktop
···22Encoding=UTF-8
33Version=1.0
44Type=Application
55-Exec=/usr/bin/handlr open https://bsky.app/
55+Exec=/usr/bin/env handlr open https://bsky.app/
66Name=BlueSky
77Comment=Open BlueSky homepage
+1-1
.local/share/applications/userapp-GitHub.desktop
···22Encoding=UTF-8
33Version=1.0
44Type=Application
55-Exec=/usr/bin/handlr open https://github.com/
55+Exec=/usr/bin/env handlr open https://github.com/
66Name=GitHub
77Comment=Open GitHub homepage
+1-1
.local/share/applications/userapp-Reddit.desktop
···22Encoding=UTF-8
33Version=1.0
44Type=Application
55-Exec=/usr/bin/handlr open https://reddit.com/
55+Exec=/usr/bin/env handlr open https://reddit.com/
66Name=Reddit
77Comment=Open Reddit homepage