From e469a68155098e6b4a720359fdaa973f36347613 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Thu, 3 Jul 2025 13:30:00 +0900 Subject: Stop tracking snippets in git It's not configuration, and I'm adding and changing them too frequently --- .gitignore | 4 ++-- linking_example.sh | 3 +++ public/.local/share/dmenu/snippet/htmlEscape.js | 9 --------- public/.local/share/dmenu/snippet/test.sh | 1 - 4 files changed, 5 insertions(+), 12 deletions(-) delete mode 100644 public/.local/share/dmenu/snippet/htmlEscape.js delete mode 100644 public/.local/share/dmenu/snippet/test.sh diff --git a/.gitignore b/.gitignore index 1275637..06e4254 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -./sensitive/ -./secret/ +private/ public/.config/gtk-3.0/bookmarks +public/.local/share/dmenu/snippet diff --git a/linking_example.sh b/linking_example.sh index ae0a6e4..4b700ec 100644 --- a/linking_example.sh +++ b/linking_example.sh @@ -5,6 +5,9 @@ # * `ln -sf` overwrites the destination files # # you can play with ln options (e.g., `ln -siv`) +# +# To find out which files link here: +# find ~ -type l -lname "/path/to/dotfiles" dotfiles=$HOME/mahcode/dotfiles/public dest=$HOME diff --git a/public/.local/share/dmenu/snippet/htmlEscape.js b/public/.local/share/dmenu/snippet/htmlEscape.js deleted file mode 100644 index f4a3673..0000000 --- a/public/.local/share/dmenu/snippet/htmlEscape.js +++ /dev/null @@ -1,9 +0,0 @@ -/* https://stackoverflow.com/questions/7381974/which-characters-need-to-be-escaped-in-html#7382028 */ -function htmlEscape(text) { - return String(text) - .replaceAll("&", "&") - .replaceAll("<", "<") - .replaceAll(">", ">") - .replaceAll('"', """) - .replaceAll("'", "'"); -} diff --git a/public/.local/share/dmenu/snippet/test.sh b/public/.local/share/dmenu/snippet/test.sh deleted file mode 100644 index fcadfe3..0000000 --- a/public/.local/share/dmenu/snippet/test.sh +++ /dev/null @@ -1 +0,0 @@ -[ 0 -eq 1 ] && echo True || echo False -- cgit v1.2.3