mirror of
https://github.com/GRFreire/dotfiles.git
synced 2026-01-10 04:19:38 +00:00
check cargo and nvm/fnm existence before sourcing
This commit is contained in:
parent
bd350b7649
commit
d122d7477f
@ -8,7 +8,9 @@ export ZSH="$HOME/.local/share/ohmyzsh"
|
|||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
# Load cargo env
|
# Load cargo env
|
||||||
. "$CARGO_HOME/env"
|
if [ -d "$CARGO_HOME" ]; then
|
||||||
|
. "$CARGO_HOME/env"
|
||||||
|
fi
|
||||||
|
|
||||||
# Set cursor to beam shape
|
# Set cursor to beam shape
|
||||||
echo -ne '\e[5 q'
|
echo -ne '\e[5 q'
|
||||||
@ -102,9 +104,13 @@ alias btw="neofetch"
|
|||||||
# Alias for qrcode
|
# Alias for qrcode
|
||||||
alias qrcode="qrencode -s 10 -l H"
|
alias qrcode="qrencode -s 10 -l H"
|
||||||
|
|
||||||
# This loads nvm
|
# This loads fnm/nvm
|
||||||
source $HOME/.config/fast-nvm.sh
|
if [ $(command -v fnm) ]; then
|
||||||
source $NVM_DIR/bash_completion
|
eval "$(fnm env --use-on-cd)"
|
||||||
|
else
|
||||||
|
source $HOME/.config/fast-nvm.sh
|
||||||
|
source $NVM_DIR/bash_completion
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if is integrated terminal emulator
|
# Check if is integrated terminal emulator
|
||||||
if [ "$EMULATOR" = "code" ]; then
|
if [ "$EMULATOR" = "code" ]; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user