diff --git a/config.yaml b/config.yaml index 53c01b9..68f4977 100644 --- a/config.yaml +++ b/config.yaml @@ -10,6 +10,7 @@ actions: [[ ! -d ${{ZSH_CUSTOM:-${{HOME}}/.oh-my-zsh/custom}}/plugins/custom-completions ]] && mkdir -p ${{ZSH_CUSTOM:-${{HOME}}/.oh-my-zsh/custom}}/plugins/custom-completions || echo "do nothing" >/dev/null [[ ! -f ${{ZSH_CUSTOM:-${{HOME}}/.oh-my-zsh/custom}}/plugins/custom-completions/_dotdrop-completion.zsh ]] && curl -o ${{ZSH_CUSTOM:-${{HOME}}/.oh-my-zsh/custom}}/plugins/custom-completions/_dotdrop-completion.zsh https://raw.githubusercontent.com/deadc0de6/dotdrop/master/completion/_dotdrop-completion.zsh || echo "do nothing" >/dev/null [[ ! -f ${{ZSH_CUSTOM:-${{HOME}}/.oh-my-zsh/custom}}/plugins/custom-completions/_diskutil.zsh ]] && curl -o ${{ZSH_CUSTOM:-${{HOME}}/.oh-my-zsh/custom}}/plugins/custom-completions/_diskutil.zsh https://github.com/zchee/zsh-completions/blob/main/src/macOS/_diskutil || echo "do nothing" >/dev/null + [[ ! -f ${{ZSH_CUSTOM:-${{HOME}}/.oh-my-zsh/custom}}/plugins/custom-completions/_fabric ]] && curl -sSLo ${{ZSH_CUSTOM:-${{HOME}}/.oh-my-zsh/custom}}/plugins/custom-completions/_fabric https://raw.githubusercontent.com/danielmiessler/fabric/refs/heads/main/completions/_fabric || echo "do nothing" >/dev/null [[ ! -d ${{ZSH_CUSTOM:-${{HOME}}/.oh-my-zsh/custom}}/plugins/zsh-completions ]] && git clone https://github.com/zsh-users/zsh-completions.git ${{ZSH_CUSTOM:-${{HOME}}/.oh-my-zsh/custom}}/plugins/zsh-completions || echo "do nothing" >/dev/null [[ ! -d ${{ZSH_CUSTOM:-${{HOME}}/.oh-my-zsh/custom}}/plugins/fzf-tab-completion ]] && git clone https://github.com/lincheney/fzf-tab-completion.git ${{ZSH_CUSTOM:-${{HOME}}/.oh-my-zsh/custom}}/plugins/fzf-tab-completion || echo "do nothing" >/dev/null [[ ! -d ${{ZSH_CUSTOM:-${{HOME}}/.oh-my-zsh/custom}}/plugins/zsh-ssh ]] && git clone https://github.com/sunlei/zsh-ssh ${{ZSH_CUSTOM:-${{HOME}}/.oh-my-zsh/custom}}/plugins/zsh-ssh || echo "do nothing" >/dev/null diff --git a/dotfiles/commonfunc b/dotfiles/commonfunc index 849faec..3376bf9 100644 --- a/dotfiles/commonfunc +++ b/dotfiles/commonfunc @@ -86,6 +86,21 @@ if [[ $(command -v eza) ]]; then alias lle='ezafunc::le 2' fi +####################################### +# Wrapper for fabric-ai command. +# Globals: +# None +# Arguments: +# Arguments to pass to fabric-ai +# Outputs: +# Output from fabric-ai command +# Returns: +# Exit code from fabric-ai command +####################################### +fabric() { + fabric-ai ${@:-} +} + ####################################### # wttr - show the weather forecast in Terminal. # Globals: diff --git a/dotfiles/zshrc b/dotfiles/zshrc index a21cd9a..647a40c 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -168,6 +168,7 @@ alias agenix='RULES='\''./secrets/secrets.nix'\'' agenix' alias agenix-edit="agenix -i {{@@ env['HOME'] @@}}/.ssh/agenix-phg -e" alias ane='agenix-edit' alias cane="EDITOR='code -w' agenix-edit" +alias du="duf" alias ssh-no-check="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" alias ssh-strongbox-keys="SSH_AUTH_SOCK=~/Library/Group\ Containers/group.strongbox.mac.mcguill/agent.sock ssh-add -l" alias yeet="git push" @@ -207,3 +208,5 @@ autoload -Uz compinit zstyle ':completion:*' menu select fpath+=~/.zfunc {%@@ endif @@%} + +[[ $(command -v zoxide) ]] && eval "$(zoxide init zsh)" diff --git a/misc/Brewfile b/misc/Brewfile index ca91df2..673a0d7 100644 --- a/misc/Brewfile +++ b/misc/Brewfile @@ -1,36 +1,48 @@ +brew "asciinema" brew "age" brew "bat" brew "btop" brew "colima", restart_service: :changed brew "coreutils" brew "docker" +brew "duf" brew "eza" +brew "fabric-ai" brew "fzf" brew "gnu-getopt" brew "htop" +brew "ipcalc" brew "iproute2mac" brew "jq" +brew "lazydocker" brew "libmagic" brew "macmon" brew "magic-wormhole" brew "mas" +brew "moreutils" brew "mosh" brew "mpv" +brew "mtr" brew "ncdu" brew "nmap" brew "pssh" +brew "progress" brew "pv" +brew "ripgrep" brew "ruff" brew "telnet" +brew "termshark" brew "the_silver_searcher" brew "tig" brew "tldr" brew "tmux" +brew "unp" brew "uv" brew "watch" brew "wget" brew "yq" brew "yt-dlp" +brew "zoxide" brew "zsh" cask "aldente" cask "alfred" @@ -41,9 +53,8 @@ cask "iterm2" cask "jordanbaird-ice" cask "mist" cask "monitorcontrol" -cask "nextcloud" +cask "pop" cask "rambox" -cask "utm" cask "visual-studio-code" cask "zen" mas "AdGuard for Safari", id: 1440147259