Skip to content

Commit

Permalink
✨ PIP_REQUIRE_VIRTUALENV
Browse files Browse the repository at this point in the history
  • Loading branch information
juftin committed Mar 21, 2024
1 parent 0edb224 commit e6e2b9b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bootstrap/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ function symlink_item() {
##########################################################

function symlink_dotfiles() {
# Shell Plugins
# OhMyZsh
symlink_item "${DOTFILES_DIR}/bootstrap/oh-my-zsh" "${HOME}/.oh-my-zsh"
# OhMyZsh Custom Plugins
symlink_item "${DOTFILES_DIR}/bootstrap/powerlevel10k" "${HOME}/.oh-my-zsh/custom/themes/powerlevel10k"
Expand All @@ -277,6 +277,7 @@ function symlink_dotfiles() {
# Shell Files
symlink_item "${DOTFILES_DIR}/shell/.zshrc" "${HOME}/.zshrc"
symlink_item "${DOTFILES_DIR}/shell/.zprofile" "${HOME}/.zprofile"
symlink_item "${DOTFILES_DIR}/shell/.profile" "${HOME}/.profile"
symlink_item "${DOTFILES_DIR}/shell/.bashrc" "${HOME}/.bashrc"
symlink_item "${DOTFILES_DIR}/shell/.p10k.zsh" "${HOME}/.p10k.zsh"
symlink_item "${DOTFILES_DIR}/shell/.shell_aliases" "${HOME}/.shell_aliases"
Expand Down
21 changes: 21 additions & 0 deletions shell/.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# CodeWhisperer pre block. Keep at the top of this file.
if [[ -f "${HOME}/Library/Application Support/codewhisperer/shell/zshrc.pre.bash" ]]; then
builtin source "${HOME}/Library/Application Support/codewhisperer/shell/zshrc.pre.bash"
fi

if [[ -d ${HOME}/.pyenv && -z ${PYENV_ROOT} ]]; then
export PYENV_ROOT="${HOME}/.pyenv"
export PATH="${PYENV_ROOT}/bin:${PATH}"
eval "$(pyenv init -)"
alias awsume="source \$(pyenv which awsume)"
fi

if [[ ! $PATH == *"${HOME}/.local/bin"* && -d "${HOME}/.local/bin" ]]; then
export PATH="$PATH:${HOME}/.local/bin"
fi

# CodeWhisperer post block. Keep at the bottom of this file.
if [[ -f "${HOME}/Library/Application Support/codewhisperer/shell/zshrc.post.bash" ]]; then
builtin source "${HOME}/Library/Application Support/codewhisperer/shell/zshrc.post.bash"
fi
# Fig Ignore
2 changes: 1 addition & 1 deletion shell/.shell_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@ function sync() {
}

if [[ ${OSTYPE} == "darwin"* ]]; then
[[ ! -f ${DOTFILES_DIR}/shell/zsh/mac/aliases.zsh ]] || source ${DOTFILES_DIR}/shell/zsh/mac/aliases.zsh
[[ ! -f ${DOTFILES_DIR}/shell/mac_aliases.zsh ]] || source ${DOTFILES_DIR}/shell/mac_aliases.zsh
fi
3 changes: 3 additions & 0 deletions shell/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ setopt inc_append_history # Add commands to the history file immediately.
############### APP SPECIFIC CONFIGS #####################
##########################################################

# python
export PIP_REQUIRE_VIRTUALENV=true

# pyenv
if [[ -d ${HOME}/.pyenv && -z ${PYENV_ROOT} ]]; then
export PYENV_ROOT="${HOME}/.pyenv"
Expand Down

0 comments on commit e6e2b9b

Please sign in to comment.