From 8ca0926edde27de7f31e31c9038721b55cf67d05 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Mon, 15 Jul 2024 13:05:15 -0400 Subject: Sixel fastfetch & better git root alias --- .local/bin/aliasgen | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.local/bin/aliasgen') diff --git a/.local/bin/aliasgen b/.local/bin/aliasgen index 00fbc68..8f976d0 100755 --- a/.local/bin/aliasgen +++ b/.local/bin/aliasgen @@ -1,7 +1,7 @@ #!/bin/sh # Removing unecessary comments and documentation -raw="$(sed 's/^\s*//;s/#.*$//;s/,\s*/,/g;/^$/d' <"$XDG_CONFIG_HOME/aliasrc")" +raw="$(sed 's/^\s*//;s/#.*$//;s/,\s*/,/g;/^$/d' <"${XDG_CONFIG_HOME:-$HOME/.config}/aliasrc")" # #---zsh---# # -echo "$raw" | sed 's/\(.*\),\(.*\)/alias \1="\2"/' >$HOME/.cache/zsh-aliases +echo "$raw" | sed 's/\(.*\),\(.*\)/\1(){\2 $@}/' >"${XDG_CACHE_HOME:-$HOME/.cache}/zsh-aliases" -- cgit v1.2.3