Skip to content

Commit e6e2b9b

Browse files
committed
✨ PIP_REQUIRE_VIRTUALENV
1 parent 0edb224 commit e6e2b9b

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

bootstrap/bootstrap.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ function symlink_item() {
265265
##########################################################
266266

267267
function symlink_dotfiles() {
268-
# Shell Plugins
268+
# OhMyZsh
269269
symlink_item "${DOTFILES_DIR}/bootstrap/oh-my-zsh" "${HOME}/.oh-my-zsh"
270270
# OhMyZsh Custom Plugins
271271
symlink_item "${DOTFILES_DIR}/bootstrap/powerlevel10k" "${HOME}/.oh-my-zsh/custom/themes/powerlevel10k"
@@ -277,6 +277,7 @@ function symlink_dotfiles() {
277277
# Shell Files
278278
symlink_item "${DOTFILES_DIR}/shell/.zshrc" "${HOME}/.zshrc"
279279
symlink_item "${DOTFILES_DIR}/shell/.zprofile" "${HOME}/.zprofile"
280+
symlink_item "${DOTFILES_DIR}/shell/.profile" "${HOME}/.profile"
280281
symlink_item "${DOTFILES_DIR}/shell/.bashrc" "${HOME}/.bashrc"
281282
symlink_item "${DOTFILES_DIR}/shell/.p10k.zsh" "${HOME}/.p10k.zsh"
282283
symlink_item "${DOTFILES_DIR}/shell/.shell_aliases" "${HOME}/.shell_aliases"

shell/.profile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# CodeWhisperer pre block. Keep at the top of this file.
2+
if [[ -f "${HOME}/Library/Application Support/codewhisperer/shell/zshrc.pre.bash" ]]; then
3+
builtin source "${HOME}/Library/Application Support/codewhisperer/shell/zshrc.pre.bash"
4+
fi
5+
6+
if [[ -d ${HOME}/.pyenv && -z ${PYENV_ROOT} ]]; then
7+
export PYENV_ROOT="${HOME}/.pyenv"
8+
export PATH="${PYENV_ROOT}/bin:${PATH}"
9+
eval "$(pyenv init -)"
10+
alias awsume="source \$(pyenv which awsume)"
11+
fi
12+
13+
if [[ ! $PATH == *"${HOME}/.local/bin"* && -d "${HOME}/.local/bin" ]]; then
14+
export PATH="$PATH:${HOME}/.local/bin"
15+
fi
16+
17+
# CodeWhisperer post block. Keep at the bottom of this file.
18+
if [[ -f "${HOME}/Library/Application Support/codewhisperer/shell/zshrc.post.bash" ]]; then
19+
builtin source "${HOME}/Library/Application Support/codewhisperer/shell/zshrc.post.bash"
20+
fi
21+
# Fig Ignore

shell/.shell_aliases

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,5 @@ function sync() {
117117
}
118118

119119
if [[ ${OSTYPE} == "darwin"* ]]; then
120-
[[ ! -f ${DOTFILES_DIR}/shell/zsh/mac/aliases.zsh ]] || source ${DOTFILES_DIR}/shell/zsh/mac/aliases.zsh
120+
[[ ! -f ${DOTFILES_DIR}/shell/mac_aliases.zsh ]] || source ${DOTFILES_DIR}/shell/mac_aliases.zsh
121121
fi

shell/.zshrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ setopt inc_append_history # Add commands to the history file immediately.
8787
############### APP SPECIFIC CONFIGS #####################
8888
##########################################################
8989

90+
# python
91+
export PIP_REQUIRE_VIRTUALENV=true
92+
9093
# pyenv
9194
if [[ -d ${HOME}/.pyenv && -z ${PYENV_ROOT} ]]; then
9295
export PYENV_ROOT="${HOME}/.pyenv"

0 commit comments

Comments
 (0)