From 4ccdb6fb1f53bc6c799ece8c2f03a0fede093acd Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Mon, 31 Mar 2025 12:16:47 -0400 Subject: config cleanup --- .local/bin/shortcutgen.bak | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100755 .local/bin/shortcutgen.bak (limited to '.local/bin/shortcutgen.bak') diff --git a/.local/bin/shortcutgen.bak b/.local/bin/shortcutgen.bak deleted file mode 100755 index fe5ed75..0000000 --- a/.local/bin/shortcutgen.bak +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - - -# raw (basic processing before converting to specific formats) -# - remove comments -# - remove empty lines -# - remove spacing (keep commas between columns) -# - remove trailing whitespace - -# Strip comments, remove empty lines, condense spacing, remove trailing whitespace -raw="$(sed 's/#.*//g;s/,[[:space:]]*/,/g;/^$/d;s/[[:space:]]*$//g' <"${XDG_CONFIG_HOME:-$HOME/.config}/shortcutrc")" - -# lf (sourced by lfrc) -echo "$raw" | sed 's/\(.*\),\(.*\),\(.*\)/map g\2 cd \3/' >"${XDG_CONFIG_HOME:-$HOME/.config}/lf/shortcuts" - -# Shell aliases (read by zshrc) -echo "$raw" | sed 's/\(.*\),\(.*\),\(.*\)/alias g\2="cd \3"/' >"${XDG_CACHE_HOME:-$HOME/.cache}/zsh-shortcuts" - -# Environment variables (read by .profile) -echo "$raw" | sed 's/^\(.*\),\(.*\),/export G\U\2=,/;s/,\(.*\)/\1/' >"${XDG_CACHE_HOME:-$HOME/.cache}/env-shortcuts" - - - -- cgit v1.2.3