mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-10-16 11:40:46 +00:00
Compare commits
3 commits
51b1c966e2
...
eca70d29ad
Author | SHA1 | Date | |
---|---|---|---|
|
eca70d29ad | ||
|
367e9381df | ||
|
70f096adc6 |
2 changed files with 9 additions and 3 deletions
|
@ -163,7 +163,7 @@ function git_current_branch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Outputs the name of the previously checked out branch
|
# Outputs the name of the previously checked out branch
|
||||||
# Usage example: git pull origin $(git_current_branch)
|
# Usage example: git pull origin $(git_previous_branch)
|
||||||
# rev-parse --symbolic-full-name @{-1} only prints if it is a branch
|
# rev-parse --symbolic-full-name @{-1} only prints if it is a branch
|
||||||
function git_previous_branch() {
|
function git_previous_branch() {
|
||||||
local ref
|
local ref
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue