diff options
Diffstat (limited to 'config/essentials')
| -rw-r--r-- | config/essentials/shell/aliases.sh | 9 | ||||
| -rw-r--r-- | config/essentials/zsh/.zshrc | 9 | 
2 files changed, 9 insertions, 9 deletions
diff --git a/config/essentials/shell/aliases.sh b/config/essentials/shell/aliases.sh index eb48416..de441a5 100644 --- a/config/essentials/shell/aliases.sh +++ b/config/essentials/shell/aliases.sh @@ -169,7 +169,14 @@ alias wgdown='doas wg-quick down wg0'  alias npi="npm init --yes"  # Python -alias penv='python3 -m venv env' + +if which uv > /dev/null 2>&1 +then +    alias penv='uv venv env' +    alias pip='uv pip' +else +    alias penv='python3 -m venv env' +fi  alias phttp='python3 -m http.server'  alias pipreq='pip install -r requirements.txt' diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index ab66fcb..91a1618 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -110,19 +110,12 @@ bindkey -M menuselect '^xh' accept-and-hold                # Hold  bindkey -M menuselect '^xn' accept-and-infer-next-history  # Next  bindkey -M menuselect '^xu' undo                           # Undo -space-expand-alias() { -    zle _expand_alias -    zle self-insert -} -zle -N space-expand-alias -bindkey -M main ' ' space-expand-alias -  ## window title hooks  add-zsh-hook -Uz preexec () { print -n "\e]0;$1\a\033[0m"; }  add-zsh-hook -Uz precmd set_wt (){ print -Pn "\e]0;%n@%m on %~\a"; }  ## automatic ls after cd -add-zsh-hook -Uz chpwd (){ [ "$PWD" = "$HOME" ] || ls -a; } +add-zsh-hook -Uz chpwd (){ [ "$PWD" = "$HOME" ] || ls -A; }  ### Variables  ## Run menuscripts with fzf  | 
