From ab3b79c488ba7cebfd42ce614590247e9428b32a Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Fri, 31 Jul 2026 13:14:53 -0400 Subject: improve dotfiles --- .bash_aliases | 1 + .gitconfig | 8 +++++++- .local/bin/emojis.sh | 1 + .local/bin/gnome-terminal-newtab | 9 +++++---- .local/bin/jira-CR.php | 2 +- 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index 550f8de..77832b1 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -18,5 +18,6 @@ alias gitb="git branch --show-current" alias cp="cp -i" alias rm="rm -i" +alias ls='ls --hyperlink --color=auto' alias awksum="awk 'BEGIN{s=0} /[0-9]+/{s+=\$1} END{print s}'" diff --git a/.gitconfig b/.gitconfig index c1b7ddd..8cf24f6 100644 --- a/.gitconfig +++ b/.gitconfig @@ -14,10 +14,12 @@ gerp = grep [core] #pager = diff-so-fancy | less --tabs=4 -RFX + pager = delta --hyperlinks [merge] conflictstyle = diff3 [interactive] - #diffFilter = diff-so-fancy --patch + diffFilter = diff-so-fancy --patch + #diffFilter = delta --color-only --hyperlinks [sendemail] smtpserver = smtp.gmail.com smtpuser = zach.decook@bettercarpeople.com @@ -25,3 +27,7 @@ smtpserverport = 587 [advice] statusHints = false +[delta] + navigate = true + hyperlinks = true + #hyperlinks-file-link-format = 'file://{path}' diff --git a/.local/bin/emojis.sh b/.local/bin/emojis.sh index 5954b33..d630f3e 100755 --- a/.local/bin/emojis.sh +++ b/.local/bin/emojis.sh @@ -1,6 +1,7 @@ #!/bin/sh # http://www.unicode.org/Public/emoji/14.0/emoji-test.txt +# http://www.unicode.org/Public/emoji/16.0/emoji-test.txt # alpine package unicode-character-database installs this here: # title="😀 Emoji Input" input=/usr/share/unicode/emoji/emoji-test.txt diff --git a/.local/bin/gnome-terminal-newtab b/.local/bin/gnome-terminal-newtab index 79c3a83..a45da9a 100755 --- a/.local/bin/gnome-terminal-newtab +++ b/.local/bin/gnome-terminal-newtab @@ -1,13 +1,14 @@ #!/bin/sh # We need to set these for it to work -# TODO: get these from the environment somehow... -export GNOME_TERMINAL_SERVICE=:1.222 # specific tab that is focused #export GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/2fabbbb8_c971_4140_a182_64474ffb18c5 -export GNOME_TERMINAL_SCREEN="$(busctl --user tree org.gnome.Terminal | grep -o '/org/gnome/Terminal/screen/.*$' | head -n1)" +screen="$(busctl --user tree org.gnome.Terminal | grep -o '/org/gnome/Terminal/screen/.*$' | head -n1)" +if test "$screen"; then + export GNOME_TERMINAL_SCREEN="$screen" + export GNOME_TERMINAL_SERVICE="$(busctl --user status org.gnome.Terminal | grep UniqueName | cut -d= -f2)" +fi -#echo DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS" >> /tmp/terminal-newtab.log echo GNOME_TERMINAL_SCREEN="$GNOME_TERMINAL_SCREEN" >> /tmp/terminal-newtab.log echo GNOME_TERMINAL_SERVICE="$GNOME_TERMINAL_SERVICE" >> /tmp/terminal-newtab.log echo "$@" "\n" >> /tmp/terminal-newtab.log diff --git a/.local/bin/jira-CR.php b/.local/bin/jira-CR.php index 6e665ea..88b91da 100755 --- a/.local/bin/jira-CR.php +++ b/.local/bin/jira-CR.php @@ -250,7 +250,7 @@ foreach ($prs_json as $pr) { file_put_contents("/tmp/jira-CR.html", $html, FILE_APPEND); } } -[$tickets, $ticketLabels] = get_jira(['Pending Sign Off', 'Signed Off']); +[$tickets, $ticketLabels] = get_jira(['Pending Sign Off', 'Signed Off', 'Ready To Deploy']); echo "\n"; foreach ($prs_json as $pr) { [$terminal, $html] = process_pr($pr, $tickets, $ticketLabels, true); -- cgit 1.4.1