better salt alias

This commit is contained in:
Jonas Forsberg 2020-08-01 13:48:16 +02:00
parent 92b7931caa
commit 64d0510af6
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9
2 changed files with 2 additions and 2 deletions

2
.alias
View File

@ -6,4 +6,4 @@ alias dotf='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
alias ls_dotfiels='/usr/bin/git --git-dir=$HOME/.dotfiles ls-tree --full-tree -r --name-only HEAD'
alias t="todo.sh"
alias gl='git log --graph --pretty=format:'\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit --date=relative'
alias salt='sudo salt-call --local "$@"'
alias salt='sudo salt-call --local --file-root "$HOME/salt/states" --pillar-root "$HOME/salt/pillars" "$@"'

View File

@ -1,3 +1,3 @@
```
alias salt='sudo salt-call --local "$@"'
alias salt='sudo salt-call --local --file-root "$HOME/salt/states" --pillar-root "$HOME/salt/pillars" "$@"'
```