mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
Adds update dots script and fixes some typos
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
6
zsh/config/functions/update-dots
Executable file
6
zsh/config/functions/update-dots
Executable file
@@ -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 "$@"
|
||||
}
|
||||
Reference in New Issue
Block a user