♻ refactor(xdg): XDG_CONFIG_HOME compliance

This commit is contained in:
punkfairie 2024-03-09 20:28:57 -08:00
parent 67ab0183b1
commit 91daec3bf3
Signed by: punkfairie
GPG key ID: A86AF57F837E320F
6 changed files with 12 additions and 4 deletions

View file

@ -3,7 +3,7 @@
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Shell aliases.
abbr -a rl --position command "source ~/.config/fish/config.fish"
abbr -a rl --position command "source $XDG_CONFIG_HOME/fish/config.fish"
abbr -a c --position command clear
abbr -a e --position command "$EDITOR"
abbr -a v --position command "$EDITOR"

View file

@ -1,7 +1,7 @@
#!/usr/bin/env fish
function lzg --wraps=lazygit
set -f configs "$HOME/.config/lazygit/config.yml,$HOME/.themes/lazygit/catppuccin/themes-mergable/macchiato/pink.yml"
set -f configs "$XDG_CONFIG_HOME/lazygit/config.yml,$HOME/.themes/lazygit/catppuccin/themes-mergable/macchiato/pink.yml"
if test "$(pwd)" = "$HOME"
lazygit --use-config-file="$configs" --work-tree="$HOME" --git-dir="$HOME/.dot"

View file

@ -0,0 +1,7 @@
#!/usr/bin/env fish
set -gx WGETRC "$XDG_CONFIG_HOME/wgetrc"
function wget --wraps wget
wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"
end

View file

@ -14,7 +14,7 @@ result
')
set -l types \
"build: Changes that affect the build system or external dependancies" \
"build: Changes that affect the build system or external dependencies" \
"ci: Changes to the CI configuration files and scripts" \
"docs: Documentation only changes" \
"feat: A new feature" \
@ -22,7 +22,8 @@ set -l types \
"perf: A code change that improves performance" \
"refactor: A code change that neither fixes a bug nor adds a feature" \
"style: Changes that do not affect the meaning of the code" \
"test: Adding missing tests or correcting existing tests"
"test: Adding missing tests or correcting existing tests" \
"chore: Update dependencies; bump version numbers; etc"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -