yazi: update keybinds
This commit is contained in:
@@ -180,17 +180,20 @@ if (( $+commands[git] )); then
|
|||||||
print -r -- "$repo"
|
print -r -- "$repo"
|
||||||
}
|
}
|
||||||
|
|
||||||
gc() {
|
# gc() {
|
||||||
local repo
|
# local repo
|
||||||
repo=$(uy_git_repo_from_clipboard) || return 1
|
# repo=$(uy_git_repo_from_clipboard) || return 1
|
||||||
git clone "$repo"
|
# git clone "$repo"
|
||||||
}
|
# }
|
||||||
|
|
||||||
pingo() {
|
pingo() {
|
||||||
cd "$HOME/Repositories/Uni" || return 1
|
builtin cd "$HOME/Repositories/Uni" || return 1
|
||||||
local repo
|
local repo
|
||||||
repo=$(uy_git_repo_from_clipboard) || return 1
|
repo=$(uy_git_repo_from_clipboard) || return 1
|
||||||
local dir_name="${repo:t:r}"
|
local dir_name="${repo:t:r}"
|
||||||
|
local course="${${dir_name%%[^[:lower:]]*}:u}"
|
||||||
|
mkdir -p "$course"
|
||||||
|
builtin cd "$course" || return 1
|
||||||
if [[ ! -d "$dir_name" ]]; then
|
if [[ ! -d "$dir_name" ]]; then
|
||||||
git clone "$repo" || return 1
|
git clone "$repo" || return 1
|
||||||
fi
|
fi
|
||||||
@@ -201,7 +204,7 @@ if (( $+commands[git] )); then
|
|||||||
disown
|
disown
|
||||||
else
|
else
|
||||||
echo "Opening method missing or invalid"
|
echo "Opening method missing or invalid"
|
||||||
cd "$dir_name"
|
builtin cd "$dir_name"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user