Stop calling git in aliases
we might not be in a git dir
This commit is contained in:
parent
6c43a5b84d
commit
7383759af6
2 changed files with 12 additions and 2 deletions
|
@ -70,6 +70,16 @@ function git-date-added {
|
|||
fi
|
||||
}
|
||||
|
||||
function git-since-last-tag {
|
||||
git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline
|
||||
}
|
||||
|
||||
function git-root {
|
||||
if [[ "$(git rev-parse --is-inside-work-tree)" == "true" ]]; then
|
||||
cd $(git root)
|
||||
fi
|
||||
}
|
||||
|
||||
function password-generator {
|
||||
if [ -x "$(command -v openssl)" ]; then
|
||||
password=$(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue