[zsh] Remove the wrapping init_path function
This commit is contained in:
parent
f3be935075
commit
f697e616d3
1 changed files with 17 additions and 23 deletions
|
@ -1,27 +1,21 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
# Initialize the path to a standard default
|
|
||||||
# Eryn Wells <eryn@erynwells.me>
|
# Eryn Wells <eryn@erynwells.me>
|
||||||
|
|
||||||
autoload prepend_to_path
|
autoload -Uz prepend_to_path
|
||||||
autoload append_to_path
|
autoload -Uz append_to_path
|
||||||
|
|
||||||
function init_path
|
export path=()
|
||||||
{
|
append_to_path "/opt/brew/bin"
|
||||||
export path=()
|
append_to_path "/opt/homebrew/bin"
|
||||||
append-to-path "/opt/brew/bin"
|
append_to_path "/usr/local/bin"
|
||||||
append-to-path "/opt/homebrew/bin"
|
append_to_path "/usr/bin"
|
||||||
append_to_path "/usr/local/bin"
|
append_to_path "/bin"
|
||||||
append_to_path "/usr/bin"
|
append_to_path "/usr/local/sbin"
|
||||||
append_to_path "/bin"
|
append_to_path "/usr/sbin"
|
||||||
append_to_path "/usr/local/sbin"
|
append_to_path "/sbin"
|
||||||
append_to_path "/usr/sbin"
|
prepend_to_path "/usr/X11/bin"
|
||||||
append_to_path "/sbin"
|
prepend_to_path "/opt/local/bin"
|
||||||
prepend_to_path "/usr/X11/bin"
|
prepend_to_path "$HOME/.local/bin"
|
||||||
prepend_to_path "/opt/local/bin"
|
prepend_to_path "$HOME/.gem/ruby/2.2.0/bin"
|
||||||
prepend_to_path "$HOME/.local/bin"
|
prepend_to_path "$HOME/.cargo/bin"
|
||||||
prepend_to_path "$HOME/.gem/ruby/2.2.0/bin"
|
prepend_to_path "$HOME/bin"
|
||||||
prepend_to_path "$HOME/.cargo/bin"
|
|
||||||
prepend_to_path "$HOME/bin"
|
|
||||||
}
|
|
||||||
|
|
||||||
init_path
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue