diff --git a/bootstrap.zsh b/bootstrap.zsh index 74cf077..1598a78 100644 --- a/bootstrap.zsh +++ b/bootstrap.zsh @@ -45,4 +45,6 @@ fi if ! (( $+commands[exa] )); then cargo install exa fi - +if ! (( $+commands[stylua] )); then + cargo install stylua +fi diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index a48fc62..1c78806 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -1,4 +1,3 @@ -# NOTE: Set WSL_FLAG in .zprofile # If you come from bash you might have to change your $PATH. export PATH=$HOME/bin:/usr/local/bin:$HOME/.local/bin:$HOME/.luarocks/bin:$HOME/aibin:$HOME/.cargo/bin:$PATH setopt autocd extendedglob nomatch menucomplete @@ -6,9 +5,9 @@ setopt interactive_comments # Colors autoload -Uz colors && colors # Check for WSL in kernel info -if [[ $(uname -r) == *"WSL"* ]]; then - export PATH=/mnt/c/Users/iplay/AppData/Local/Programs/Microsoft\ VS\ Code/bin:/mnt/c/Windows/System32/:$PATH -fi +# if [[ $(uname -r) == *"WSL"* ]]; then +# export PATH=/mnt/c/Users/iplay/AppData/Local/Programs/Microsoft\ VS\ Code/bin:/mnt/c/Windows/System32/:$PATH +# fi fpath+=${ZDOTDIR:-~}/completions source "$ZDOTDIR/zsh-functions" zsh_add_file "zsh-aliases" diff --git a/zsh/.config/zsh/zsh-aliases b/zsh/.config/zsh/zsh-aliases index 52fd247..5793edc 100644 --- a/zsh/.config/zsh/zsh-aliases +++ b/zsh/.config/zsh/zsh-aliases @@ -6,3 +6,5 @@ alias lt='exa --tree -L=2' alias coz='$EDITOR ~/.zshrc' alias py-act='source env/bin/activate' alias tmux='tmux -f ~/.config/tmux/tmux.conf' +alias venv-create='python3 -m venv $HOME/.virtualenvs/${PWD##*/}' +alias workon='source $HOME/.virtualenvs/${PWD##*/}/bin/activate'