mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
use better code style in path.zsh
This commit is contained in:
parent
5ad1291999
commit
e49d51cd60
1 changed files with 1 additions and 2 deletions
|
@ -40,8 +40,7 @@ path=(~/bin ~/.local/bin "${path[@]}")
|
|||
fpath=("$DOTFILES_PATH/completions" "${fpath[@]}")
|
||||
|
||||
# check for Rust installed via rustup
|
||||
rust_sysroot="$(~/.cargo/bin/rustc --print sysroot)"
|
||||
if [[ "$?" == 0 ]]; then
|
||||
if rust_sysroot="$(~/.cargo/bin/rustc --print sysroot)"; then
|
||||
# add paths to the current Rust toolchain
|
||||
path=(~/.cargo/bin "${path[@]}")
|
||||
fpath=("$rust_sysroot/share/zsh/site-functions" "${fpath[@]}")
|
||||
|
|
Loading…
Reference in a new issue