Loading improvements
.bashrc will skip .swp files (editors leave those while open) bin.path renamed to path.env and PATH manipulation should be 'cleaner' it adds required dirs to paths, but also makes sure no duplicates are inserted. chezmoi logic split, and status is seperated from aliases. Disable chezmoi status on load, as it is SLOW.
This commit is contained in:
parent
ce4d8c303d
commit
7c17b8922c
6 changed files with 24 additions and 14 deletions
15
_home/dot_sz.shrc.d/97_chezmoi_aliases
Normal file
15
_home/dot_sz.shrc.d/97_chezmoi_aliases
Normal file
|
@ -0,0 +1,15 @@
|
|||
if [[ -n "$(type -fP chezmoi)" ]]; then
|
||||
alias cz="chezmoi "
|
||||
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-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
|
||||
}
|
||||
|
||||
function cz-set-https-github() {
|
||||
chezmoi git -- remote set-url origin "$(chezmoi git -- remote get-url origin | sed 's|git@github.com:|https://github.com/|')"
|
||||
chezmoi git -- remote get-url origin
|
||||
}
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue