Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions NOTES.md

This file was deleted.

96 changes: 0 additions & 96 deletions docs/build_cool_retro_term_mac_homebrew_2025.sh

This file was deleted.

35 changes: 3 additions & 32 deletions functions
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@ command_exists() {
type "$1" &>/dev/null
}

# Deduplicate path variables, shell-agnostic
# TODO: use to cleanup env after logging in
# TODO: probably problematic, test.
get_var() { eval "echo \$$1"; }
set_var() { eval "$1=\"$2\""; }
dedup_pathvar() {
pathvar_name="$1"
pathvar_value="$(get_var $pathvar_name)"
deduped_path="$(echo -n $pathvar_value | perl -e 'print join(":",grep { not $seen{$_}++ } split(/:/, scalar <>))')"
set_var $pathvar_name "$deduped_path"
}

# https://coderwall.com/p/_s_xda/fix-ssh-agent-in-reattached-tmux-session-shells
fixssh() {
for key in SSH_AUTH_SOCK SSH_CONNECTION SSH_CLIENT; do
Expand All @@ -28,42 +16,25 @@ fixssh() {

# Shorten the email to the format x@y; useful in prompt
git_user_name_prompt_mkii() {
gitname=$(git config user.email | sed 's/\(.\).\+@\(..\).\+/\1@\2/')
gitname_global=$(git config --global user.email | sed 's/\(.\).\+@\(..\).\+/\1@\2/')
if [[ $gitname != $gitname_global ]]; then
#echo -n $gitname | color red
echo -n $gitname 
else
echo -n $gitname
fi
git config user.email | sed 's/\(.\).\+@\(..\).\+/\1@\2/'
}

# git quicksave: commit and push
save() {
if [ -z "${1+x}" ]; then
#echo "Missing commit message.";
git commit -a -m "update" && git push
else
git commit -a -m "$1" && git push
fi
}

# Print the argument in the terminal, centered
function center-text() {
#colcount=$((`tput cols` - 1))
# Print text to terminal centered
center-text() {
colcount=$((COLUMNS - 3))
sed -e :a -e "s/^.\{1,$colcount\}$/ & /;ta"
unset colcount
}

nerdfont_icon_search() {
cat $RUNCOM2_PATH/utils/nerd-fonts-scripts/*.sh | sed "s/i=//" | sed "s/=\$i//" | grep -E "^'" | sed "s/'//g" | sort --random-sort | fzf | perl -ne 'print $1 if /^([^ ]+) /' # | xsel --input
}

function emoji_search() {
emojify -l | tail -n +5 | sort | fzf
}

load_secrets() {
local _secrets="$HOME/.secrets"
if [[ ! -f "$_secrets" ]]; then
Expand Down
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ stale-links-clean:

# 🎨 Format shell scripts with shfmt
fmt:
shfmt -w setup/*.sh setup/install/*.sh
shfmt -w setup/*.sh
@echo "Format complete."

# ✅ Lint shell scripts with shellcheck
lint:
shellcheck setup/*.sh setup/install/*.sh || true
shellcheck setup/*.sh || true
@echo "Lint complete."

# 🚦 Format + lint gate
Expand Down
4 changes: 0 additions & 4 deletions setup/NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,3 @@ starship init fish --print-full-init | sed 's/"$(commandline)"/(commandline | st

See: <https://github.com/starship/starship/issues/6336>

## Legacy

The `install/` subdirectory contains the previous setup scripts.
These will be removed once the new scripts are validated on all platforms.
27 changes: 0 additions & 27 deletions setup/base.yml

This file was deleted.

6 changes: 0 additions & 6 deletions setup/install-linux.sh

This file was deleted.

14 changes: 0 additions & 14 deletions setup/install/binary-tools-install.sh

This file was deleted.

22 changes: 0 additions & 22 deletions setup/install/homeshick-install.sh

This file was deleted.

7 changes: 0 additions & 7 deletions setup/install/node-packages-update.sh

This file was deleted.

16 changes: 0 additions & 16 deletions setup/install/nvim-install.sh

This file was deleted.

13 changes: 0 additions & 13 deletions setup/install/nvm-install.sh

This file was deleted.

Loading