From c3f5a15459212627c5bc09a7c9374172b1f00e77 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 21 Feb 2025 11:15:37 +0200 Subject: Update content for html --- gemfeed/atom.xml | 77 -------------------------------------------------------- 1 file changed, 77 deletions(-) (limited to 'gemfeed/atom.xml') diff --git a/gemfeed/atom.xml b/gemfeed/atom.xml index 6edb3400..e8e585c5 100644 --- a/gemfeed/atom.xml +++ b/gemfeed/atom.xml @@ -1,10 +1,6 @@ -<<<<<<< HEAD 2025-02-21T11:07:08+02:00 -======= - 2025-02-13T10:21:17+02:00 ->>>>>>> b9abc29d0593a4d65919a80cdc0978dc881eb2f1 foo.zone feed To be in the .zone! @@ -1293,7 +1289,6 @@ Jan 26 17:36:32 f2 apcupsd[2159]: apcupsd shutdown succeeded by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<<<<<<< HEAD
export EDITOR=hx
 export VISUAL=$EDITOR
 export GIT_EDITOR=$EDITOR
@@ -1321,35 +1316,6 @@ editor::helix::random_theme () {
 if [ -f $HELIX_CONFIG_DIR/config.toml ]; then
     editor::helix::random_theme
 fi
-=======
-
export EDITOR=hx
-export VISUAL=$EDITOR
-export GIT_EDITOR=$EDITOR
-export HELIX_CONFIG_DIR=$HOME/.config/helix
-
-editor::helix::random_theme () {
-    # May add more theme search paths based on OS. This one is
-    # for Fedora Linux, but there is also MacOS, etc.
-    local -r theme_dir=/usr/share/helix/runtime/themes
-    if [ ! -d $theme_dir ]; then
-        echo "Helix theme dir $theme_dir doesnt exist"
-        return 1
-    fi
-
-    local -r config_file=$HELIX_CONFIG_DIR/config.toml
-    local -r random_theme="$(basename "$(ls $theme_dir \
-        | grep -v random.toml | grep .toml | sort -R \
-        | head -n 1)" | cut -d. -f1)"
-
-    sed "/^theme =/ { s/.*/theme = \"$random_theme\"/; }" \
-        $config_file > $config_file.tmp && 
-        mv $config_file.tmp $config_file
-}
-
-if [ -f $HELIX_CONFIG_DIR/config.toml ]; then
-    editor::helix::random_theme
-fi
->>>>>>> b9abc29d0593a4d65919a80cdc0978dc881eb2f1
 

So every time I open a new terminal or shell, editor::helix::random_theme gets called, which randomly selects a theme from all installed ones and updates the helix config accordingly.
@@ -1358,7 +1324,6 @@ editor::helix::random_theme () { by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<<<<<<< HEAD
[paul@earth] ~ % editor::helix::random_theme
 [paul@earth] ~ % head -n 1 ~/.config/helix/config.toml
 theme = "jellybeans"
@@ -1369,18 +1334,6 @@ theme = "rose_pine"
 [paul@earth] ~ % head -n 1 ~/.config/helix/config.toml
 theme = "noctis"
 [paul@earth] ~ %
-=======
-
[paul@earth] ~ % editor::helix::random_theme
-[paul@earth] ~ % head -n 1 ~/.config/helix/config.toml
-theme = "jellybeans"
-[paul@earth] ~ % editor::helix::random_theme
-[paul@earth] ~ % head -n 1 ~/.config/helix/config.toml
-theme = "rose_pine"
-[paul@earth] ~ % editor::helix::random_theme
-[paul@earth] ~ % head -n 1 ~/.config/helix/config.toml
-theme = "noctis"
-[paul@earth] ~ %
->>>>>>> b9abc29d0593a4d65919a80cdc0978dc881eb2f1
 

A better version


@@ -1391,7 +1344,6 @@ theme = "noctis" by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<<<<<<< HEAD
export EDITOR=hx
 export VISUAL=$EDITOR
 export GIT_EDITOR=$EDITOR
@@ -1419,35 +1371,6 @@ editor::helix::theme::set () {
 if [ -f $HELIX_CONFIG_DIR/config.toml ]; then
     editor::helix::theme::set $(editor::helix::theme::get_random)
 fi
-=======
-
export EDITOR=hx
-export VISUAL=$EDITOR
-export GIT_EDITOR=$EDITOR
-export HELIX_CONFIG_DIR=$HOME/.config/helix
-
-editor::helix::theme::get_random () {
-    for dir in $(hx --health \
-        | awk '/^Runtime directories/ { print $3 }' | tr ';' ' '); do
-        if [ -d $dir/themes ]; then
-            ls $dir/themes
-        fi
-    done | grep -F .toml | sort -R | head -n 1 | cut -d. -f1
-}
-
-editor::helix::theme::set () {
-    local -r theme="$1"; shift
-
-    local -r config_file=$HELIX_CONFIG_DIR/config.toml
-
-    sed "/^theme =/ { s/.*/theme = \"$theme\"/; }" \
-        $config_file > $config_file.tmp && 
-        mv $config_file.tmp $config_file
-}
-
-if [ -f $HELIX_CONFIG_DIR/config.toml ]; then
-    editor::helix::theme::set $(editor::helix::theme::get_random)
-fi
->>>>>>> b9abc29d0593a4d65919a80cdc0978dc881eb2f1
 

I hope you had some fun. E-Mail your comments to paul@nospam.buetow.org :-)
-- cgit v1.2.3