diff --git a/.zsh/.aliases.zsh b/.zsh/.aliases.zsh index 76626cf..a4cbf93 100644 --- a/.zsh/.aliases.zsh +++ b/.zsh/.aliases.zsh @@ -526,7 +526,13 @@ __git__() { case $commit_files in './.') commit_message="wip" ;; *) - echo "${GREEN}Committed files/folders: ${BOLD}${commit_files[*]}${NC}" + local trimmed_files + + for f in "${commit_files[@]}"; do + trimmed_files+=("${f#./}") + done + + echo "${GREEN}Committed files/folders: ${BOLD}${trimmed_files[*]}${NC}" ;; esac diff --git a/.zshrc b/.zshrc index 468e624..db62781 100644 --- a/.zshrc +++ b/.zshrc @@ -108,10 +108,11 @@ __shell_qol__() { fi if command_exists zoxide; then + local raw ver - local raw="$(zoxide --version | awk '{print $2}')" - local ver="${raw#v}" # remove leading 'v' - local ver="${ver%%-*}" # remove anything after dash + raw="$(zoxide --version | awk '{print $2}')" + ver="${raw#v}" # remove leading 'v' + ver="${ver%%-*}" # remove anything after dash # local ver="$(zoxide --version | cut -d' ' -f2)" if [[ "$ver" =~ ^0\.([0-5]|[0-9]{1,2})\. ]]; then