From b89495ced79c019490f598a34ed3544e03a87f67 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 19 Jul 2025 11:56:06 +0100 Subject: [PATCH] Update --- .config/nvim | 2 +- .config/zsh/.zshrc | 124 ++++++++++++------------ .local/aider/projects/runcats/aider.env | 2 +- 3 files changed, 64 insertions(+), 64 deletions(-) diff --git a/.config/nvim b/.config/nvim index ff00984..ebb6927 160000 --- a/.config/nvim +++ b/.config/nvim @@ -1 +1 @@ -Subproject commit ff00984c4e21e4c1d13b21ca7ff57dcd03714960 +Subproject commit ebb69274baf35ae62f1ae9970ba63b46dfe8a844 diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 4a04fb2..9a8e5d5 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -99,68 +99,68 @@ preexec() { echo -ne '\e[5 q' } -function disable_alias_check() { - export DISABLE_ALIAS_CHECK=1 - echo "Alias check disabled." -} - -function enable_alias_check() { - unset DISABLE_ALIAS_CHECK - echo "Alias check enabled." -} - -function alias_suggestion_check() { - if [[ $DISABLE_ALIAS_CHECK = 1 ]] { - return - } - local current_cmd="$1" - - if [[ -z "$current_cmd" || ${#current_cmd} -lt 7 ]]; then - return - fi - - local recent_count="$(history 500 | grep -c -E "^[0-9 ]+${current_cmd}")" - if [[ $recent_count -ge 3 ]]; then - echo "\033[33m[ALIAS SUGGESTION]: You've run '$current_cmd' multiple times. Consider making an alias!\033[0m" - fi -} -preexec_functions+=(alias_suggestion_check) - -function remind_alias_if_exists() { - if [[ $DISABLE_ALIAS_CHECK = 1 ]] { - return - } - local current_cmd="$1" - - if [[ -z "$current_cmd" || ${#current_cmd} -lt 7 ]]; then - return - fi - - local matched_alias="" - for alias_name expansion in ${(kv)aliases}; do - if [[ ${#alias_name} -gt ${#expansion} ]]; then - continue - fi - if [[ "$current_cmd" == "$expansion" ]]; then - echo - echo -e "\033[33m[ALIAS REMINDER]: You just ran '$current_cmd', which has an alias '$alias_name'.\033[0m" - echo -e "\033[33mTry using: $alias_name\033[0m" - echo - return - fi - if [[ "$current_cmd" == "$expansion"* ]] && [[ ${#expansion} > ${#matched_alias} ]]; then - matched_alias="$alias_name" - fi - done - if [[ -n $matched_alias ]]; then - local expansion="${aliases[$matched_alias]}" - echo - echo -e "\033[33m[ALIAS REMINDER]: You just ran '$current_cmd', which matched an existing alias $matched_alias='$expansion'.\033[0m" - echo -e "\033[33mTry using: $matched_alias${current_cmd#$expansion}\033[0m" - echo - fi -} -preexec_functions+=(remind_alias_if_exists) +# function disable_alias_check() { +# export DISABLE_ALIAS_CHECK=1 +# echo "Alias check disabled." +# } +# +# function enable_alias_check() { +# unset DISABLE_ALIAS_CHECK +# echo "Alias check enabled." +# } +# +# function alias_suggestion_check() { +# if [[ $DISABLE_ALIAS_CHECK = 1 ]] { +# return +# } +# local current_cmd="$1" +# +# if [[ -z "$current_cmd" || ${#current_cmd} -lt 7 ]]; then +# return +# fi +# +# local recent_count="$(history 500 | grep -c -E "^[0-9 ]+${current_cmd}")" +# if [[ $recent_count -ge 3 ]]; then +# echo "\033[33m[ALIAS SUGGESTION]: You've run '$current_cmd' multiple times. Consider making an alias!\033[0m" +# fi +# } +# preexec_functions+=(alias_suggestion_check) +# +# function remind_alias_if_exists() { +# if [[ $DISABLE_ALIAS_CHECK = 1 ]] { +# return +# } +# local current_cmd="$1" +# +# if [[ -z "$current_cmd" || ${#current_cmd} -lt 7 ]]; then +# return +# fi +# +# local matched_alias="" +# for alias_name expansion in ${(kv)aliases}; do +# if [[ ${#alias_name} -gt ${#expansion} ]]; then +# continue +# fi +# if [[ "$current_cmd" == "$expansion" ]]; then +# echo +# echo -e "\033[33m[ALIAS REMINDER]: You just ran '$current_cmd', which has an alias '$alias_name'.\033[0m" +# echo -e "\033[33mTry using: $alias_name\033[0m" +# echo +# return +# fi +# if [[ "$current_cmd" == "$expansion"* ]] && [[ ${#expansion} > ${#matched_alias} ]]; then +# matched_alias="$alias_name" +# fi +# done +# if [[ -n $matched_alias ]]; then +# local expansion="${aliases[$matched_alias]}" +# echo +# echo -e "\033[33m[ALIAS REMINDER]: You just ran '$current_cmd', which matched an existing alias $matched_alias='$expansion'.\033[0m" +# echo -e "\033[33mTry using: $matched_alias${current_cmd#$expansion}\033[0m" +# echo +# fi +# } +# preexec_functions+=(remind_alias_if_exists) bindkey -s '^a' 'bc -lq\n' diff --git a/.local/aider/projects/runcats/aider.env b/.local/aider/projects/runcats/aider.env index 48ec049..85cb309 100644 --- a/.local/aider/projects/runcats/aider.env +++ b/.local/aider/projects/runcats/aider.env @@ -1,2 +1,2 @@ AIDER_READ=[README.md,.aider/read/CONVENTIONS.md,.aider/read/PROMPT.md] -AIDER_LINT_CMD="[ts: go-task format-client --,js: go-task format-client --,vue: go-task format-client --,php: go-task format-server --]" +#AIDER_LINT_CMD="[ts: go-task format-client --,js: go-task format-client --,vue: go-task format-client --,php: go-task format-server --]"