Added cz-add-changes + cleanedup poshtheme
= Oh-My-Posh theme template change to not( continas ...) logic instead of an empty condition and an {{ else }}. + cz-add-changes will add any changes made to chezmoi
This commit is contained in:
parent
f445d39fc6
commit
179f23b633
2 changed files with 11 additions and 1 deletions
|
@ -3,6 +3,16 @@ if [[ -n "$(type -fP chezmoi)" ]]; then
|
|||
alias cz-refresh="chezmoi status | cut -d\ -f2 | grep '^\.sz\.shrc\.d' | xargs chezmoi forget --force; chezmoi add ~/.sz.shrc.d --recursive; chezmoi status; chezmoi git status"
|
||||
alias cz-commit="chezmoi git -- commit -a "
|
||||
|
||||
function cz-add-changes() {
|
||||
pushd ~ > /dev/null
|
||||
changes=$(chezmoi status | sed -n 's/^MM[ \t]\+//p')
|
||||
for c in $changes; do
|
||||
echo Adding $c
|
||||
chezmoi add $c
|
||||
done
|
||||
popd > /dev/null
|
||||
}
|
||||
|
||||
function cz-set-ssh-github() {
|
||||
chezmoi git -- remote set-url origin "$(chezmoi git -- remote get-url origin | sed 's|https://github.com/|git@github.com:|')"
|
||||
chezmoi git -- remote get-url origin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue