mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-10-16 11:40:46 +00:00
Compare commits
3 commits
f663aa4aec
...
97b7df5726
Author | SHA1 | Date | |
---|---|---|---|
|
97b7df5726 | ||
|
367e9381df | ||
|
6bd4d716f3 |
2 changed files with 6 additions and 1 deletions
|
@ -163,7 +163,7 @@ function git_current_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
|
||||
function git_previous_branch() {
|
||||
local ref
|
||||
|
|
5
plugins/pkgx/pkgx.plugin.zsh
Normal file
5
plugins/pkgx/pkgx.plugin.zsh
Normal file
|
@ -0,0 +1,5 @@
|
|||
# If pkgx is not found, don't do the rest of the script
|
||||
if (( ! $+commands[pkgx] )); then
|
||||
return
|
||||
fi
|
||||
source <(pkgx --shellcode)
|
Loading…
Reference in a new issue