diff --git a/scripts/.local/scripts/vic b/scripts/.local/scripts/vic new file mode 100755 index 0000000..42a19c1 --- /dev/null +++ b/scripts/.local/scripts/vic @@ -0,0 +1,5 @@ +#!/bin/sh + +# opens a shell command in vi +cmd=$(command -v $1) +test -n "$cmd" && vi "$cmd" diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index f2ca669..3fd7c77 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -63,10 +63,10 @@ fpath_prepend() { # last arg will be first in path path_prepend \ + "/usr/local/sbin" \ + "usr/local/bin" \ "/opt/homebrew/bin" \ "/opt/homebrew/sbin" \ - "$(brew --prefix)/sbin" \ - "$(brew --prefix)/bin" \ "$HOME/.local/bin" \ "$SCRIPTS"