summaryrefslogtreecommitdiff
path: root/zsh/utils.zsh
diff options
context:
space:
mode:
authorSkladnayazebra <skladnayazebra@gmail.com>2025-10-16 15:25:29 +0200
committerSkladnayazebra <skladnayazebra@gmail.com>2025-10-16 15:30:41 +0200
commit6c4932fcb70fb7647f71d4dffe23cc0a1238f916 (patch)
tree26d613fc69488251033ec2293fbdfaad3e4edaeb /zsh/utils.zsh
parentbf7f20d9eafbbb428cb37c74b654a0fe67a48264 (diff)
cleanup utils; remove git tag from prompt; add git tag alias; move all zsh config to .config/zsh
Diffstat (limited to 'zsh/utils.zsh')
-rw-r--r--zsh/utils.zsh80
1 files changed, 0 insertions, 80 deletions
diff --git a/zsh/utils.zsh b/zsh/utils.zsh
index 111a2fb..9075ce0 100644
--- a/zsh/utils.zsh
+++ b/zsh/utils.zsh
@@ -39,22 +39,6 @@ lsproj() {
done
}
-lsproj2() {
- ls | while read line;
- do {
- fill_count=$((32 - ${#line}))
- filler=$(repeat $fill_count printf "·")
- is_git_repo=$(git -C $line rev-parse --abbrev-ref HEAD 2> /dev/null)
- if [[ $is_git_repo ]] {
- project_dir="%B%F{white}%K{green} $line %k%f%b"
- branch=" %F{blue} $(git -C $line rev-parse --abbrev-ref HEAD)%f"
- # tag=$(git -C $line describe --tags HEAD 2> /dev/null)
- print -P "|$project_dir\n|$branch\n|"
- }
- }
- done
-}
-
lsproj_watch() {
while true;
do {
@@ -66,67 +50,3 @@ lsproj_watch() {
done;
}
-# TEMP
-
-chkt() {
- ls | while read line;
- do {
- fill_count=$((32 - ${#line}))
- filler=$(for i in {1..$fill_count}; do printf "·"; done)
- is_git_repo=$(git -C $line rev-parse --abbrev-ref HEAD 2> /dev/null)
- if [[ $is_git_repo ]] {
- print "%B%F{white}%K{green} $line %k%f%b"
- git -C $line branch
- }
- }
- done
-}
-
-fore() {
- while read proj;
- do {
- echo $proj
- git -C $proj branch -d feature/update-arf-toolkit 2> /dev/null && echo "OK"
- }
- done
-}
-
-
-multiupd() {
- echo $1
- start_path=$(pwd)
- while read proj;
- do {
- cd $start_path/$proj
- print -P "%K{green}%F{white}%B update to $1 in $start_path/$proj %b%f%k"
-
- if [[ -f yarn.lock ]]; then
- yarn add $1 -E -W 2> >(grep -v warning 1>&2)
- git add yarn.lock
- elif [[ -f pnpm-lock.yaml ]]; then
- pnpm i $1 -E
- git add pnpm-lock.yaml
- elif [[ -f package-lock.json ]]; then
- npm i $1 -E
- git add package-lock.json
- fi
- git add package.json
- }
- done
-
- cd $start_path
-}
-
-createbr() {
- start_path=$(pwd)
- while read proj;
- do {
- cd $start_path/$proj
- print -P "%K{green}%F{white}%B $start_path/$proj %b%f%k"
- git co -b feature/update-arf-toolkit
- git ci -m "@arf/toolkit 0.16.5"
- git push
- bb 2> /dev/null || echo "PR is not open: $proj"
- }
- done
-}