From 64d0510af6bb3c20edb4ebb9ed619bc6b3272320 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Sat, 1 Aug 2020 13:48:16 +0200 Subject: [PATCH] better salt alias --- .alias | 2 +- salt/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.alias b/.alias index d117b57..e3c0503 100644 --- a/.alias +++ b/.alias @@ -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" "$@"' diff --git a/salt/README.md b/salt/README.md index 6c1394d..d3c3e24 100644 --- a/salt/README.md +++ b/salt/README.md @@ -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" "$@"' ```