forked from w3cj/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.functions
46 lines (41 loc) · 1.17 KB
/
.functions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
function mkcd()
{
mkdir $1 && cd $1
}
# NVM
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# >>> conda initialize >>>
export CONDA_PATH="$HOME/miniconda3"
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('$CONDA_PATH/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "$CONDA_PATH/etc/profile.d/conda.sh" ]; then
. "$CONDA_PATH/etc/profile.d/conda.sh"
else
export PATH="$CONDA_PATH/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
# Rust
. "$HOME/.cargo/env"
# Initialize warpify if available
if command -v warpify &> /dev/null; then
if [ -n "$ZSH_VERSION" ]; then
eval "$(warpify init zsh)"
elif [ -n "$BASH_VERSION" ]; then
eval "$(warpify init bash)"
fi
fi
# Initialize zoxide if available
if command -v zoxide &> /dev/null; then
if [ -n "$ZSH_VERSION" ]; then
eval "$(zoxide init zsh)"
elif [ -n "$BASH_VERSION" ]; then
eval "$(zoxide init bash)"
fi
fi