wip
This commit is contained in:
parent
feb54694a4
commit
84e0d3b4b4
2 changed files with 11 additions and 4 deletions
|
@ -526,7 +526,13 @@ __git__() {
|
||||||
case $commit_files in
|
case $commit_files in
|
||||||
'./.') commit_message="wip" ;;
|
'./.') 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
|
esac
|
||||||
|
|
||||||
|
|
7
.zshrc
7
.zshrc
|
@ -108,10 +108,11 @@ __shell_qol__() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command_exists zoxide; then
|
if command_exists zoxide; then
|
||||||
|
local raw ver
|
||||||
|
|
||||||
local raw="$(zoxide --version | awk '{print $2}')"
|
raw="$(zoxide --version | awk '{print $2}')"
|
||||||
local ver="${raw#v}" # remove leading 'v'
|
ver="${raw#v}" # remove leading 'v'
|
||||||
local ver="${ver%%-*}" # remove anything after dash
|
ver="${ver%%-*}" # remove anything after dash
|
||||||
|
|
||||||
# local ver="$(zoxide --version | cut -d' ' -f2)"
|
# local ver="$(zoxide --version | cut -d' ' -f2)"
|
||||||
if [[ "$ver" =~ ^0\.([0-5]|[0-9]{1,2})\. ]]; then
|
if [[ "$ver" =~ ^0\.([0-5]|[0-9]{1,2})\. ]]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue