Compare commits

...

3 Commits

Author SHA1 Message Date
Chih-Hung Yeh b0628044ef
Merge 70f096adc6 into 1c2127727a 2025-03-04 12:01:59 +01:00
nasso 1c2127727a
feat(jj): enable dynamic completion (#13003) 2025-03-04 11:46:29 +01:00
chyeh 70f096adc6 Fix uninstall script 2024-06-13 16:03:00 +02:00
2 changed files with 9 additions and 3 deletions

View File

@ -11,7 +11,7 @@ if [[ ! -f "$ZSH_CACHE_DIR/completions/_jj" ]]; then
_comps[jj]=_jj _comps[jj]=_jj
fi fi
jj util completion zsh >| "$ZSH_CACHE_DIR/completions/_jj" &| COMPLETE=zsh jj >| "$ZSH_CACHE_DIR/completions/_jj" &|
function __jj_prompt_jj() { function __jj_prompt_jj() {
local -a flags local -a flags

View File

@ -16,8 +16,14 @@ if [ "$confirmation" != y ] && [ "$confirmation" != Y ]; then
exit exit
fi fi
echo "Removing ~/.oh-my-zsh" # echo "Removing ~/.oh-my-zsh"
if [ -d ~/.oh-my-zsh ]; then # if [ -d ~/.oh-my-zsh ]; then
# rm -rf ~/.oh-my-zsh
# fi
echo "Removing oh-my-zsh directory"
if [ -n "$ZSH" -a -d "$ZSH" ]; then
rm -rf "$ZSH"
elif [ -d ~/.oh-my-zsh ]; then
rm -rf ~/.oh-my-zsh rm -rf ~/.oh-my-zsh
fi fi