diff --git a/zsh/config/.zshenv b/zsh/config/.zshenv index a570b91..e21904b 100755 --- a/zsh/config/.zshenv +++ b/zsh/config/.zshenv @@ -50,6 +50,7 @@ export MYZSHRC="$ZDOTDIR/.zshrc" export NAP_CONFIG="$HOME/.config/nap/config.yaml" export SKELETONDIR="$DOTFILES/skeleton" export ANSIBLE_GEN_DIR="$GHREPOS/ansible/ansible-gen-playbook" +export ANSIBLE_MACOS_PLAYBOOK_DIR="$GHREPOS/ansible/ansible-macos-playbook" export SITES="$GHREPOS/sites" # NPM diff --git a/zsh/config/.zshrc b/zsh/config/.zshrc index b6ca706..3b9e188 100755 --- a/zsh/config/.zshrc +++ b/zsh/config/.zshrc @@ -170,7 +170,7 @@ alias tss='~/.local/scripts/tmux-sessionator --choose' # attach to an existing alias tls='tmux list-sessions' # list tmux sessions alias temp='cd $(mktemp -d)' # create a temporary directory and move into it. alias vi='nvim' # set vi to open neovim -alias newf='"$SCRIPS"/newx --function' # generate a new shell function +alias newf='"$SCRIPTS"/newx --function' # generate a new shell function alias nlnv='nvim "$LOCAL_ENV"' # open local environment overrides file in neovime alias nvim='unset VIMINIT && unset MYVIMRC && nvim' # alias nvim to unset vimrc, useful when using both vim & neovim alias nvim-mhoush='NVIM_APPNAME=m-housh && nvim' # set neovim to use my config. diff --git a/zsh/config/functions/update-dots b/zsh/config/functions/update-dots new file mode 100755 index 0000000..894f1a0 --- /dev/null +++ b/zsh/config/functions/update-dots @@ -0,0 +1,6 @@ +#!/bin/zsh + +function update-dots() { + find "$ANSIBLE_MACOS_PLAYBOOK_DIR" -type f -maxdepth 1 -mindepth 1 -name justfile \ + | xargs -I {} just --justfile {} run-playbook --tags dotfiles "$@" +}