From 2c30a4f32551110c200ad2c44f82b04fd19c7596 Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Wed, 22 Feb 2023 14:52:38 -0700 Subject: [PATCH] Use asdf --- .zshrc | 67 +++++++++++++++++++++++++++++++--------------------------- 1 file changed, 36 insertions(+), 31 deletions(-) diff --git a/.zshrc b/.zshrc index ac0c5cd..229f36c 100644 --- a/.zshrc +++ b/.zshrc @@ -1,4 +1,6 @@ -PATH=$PATH:$HOME/scripts:/usr/local/i386elfgcc/bin/:$HOME/.local/bin:/usr/local/opt/binutils/bin:/usr/local/opt/gnu-tar/libexec/gnubin:/usr/local/opt/grep/libexec/gnubin:/usr/local/opt/findutils/libexec/gnubin:/usr/local/opt/coreutils/libexec/gnubin:$HOME/.elixir-ls/release:$HOME/.rowswell/bin +export PATH=$PATH:$HOME/scripts:/usr/local/i386elfgcc/bin/:$HOME/.local/bin:/usr/local/opt/binutils/bin:/usr/local/opt/gnu-tar/libexec/gnubin:/usr/local/opt/grep/libexec/gnubin:/usr/local/opt/findutils/libexec/gnubin:/usr/local/opt/coreutils/libexec/gnubin:$HOME/.elixir-ls/release:$HOME/.rowswell/bin +export TERM=xterm-256color +export GPG_TTY=$(tty) # Print a random ascii arts from ~/ascii-arts if [ -d "$HOME/ascii-arts" ] @@ -11,6 +13,39 @@ then printf "$(cat $logo)\n\n" fi +. /opt/asdf-vm/asdf.sh + +# Alt+b stops at forwardslashes +backward-kill-dir () { + local WORDCHARS=${WORDCHARS/\/} + zle backward-kill-word + zle -f kill +} +zle -N backward-kill-dir +bindkey '^[^?' backward-kill-dir + +# ZSH enhancements +source ~/zsh-stuff/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +source ~/zsh-stuff/spaceship-prompt/spaceship.zsh + +# History +HISTFILE=~/.zsh_history +HISTSIZE=10000 +SAVEHIST=10000 +setopt appendhistory + +# thefuck +eval $(thefuck --alias) + +# Pyenv +export PYENV_ROOT="$HOME/.pyenv" +command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init -)" + + # ghcup-env +[ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env" + +# Aliases alias ..="cd .." alias gc="git checkout" alias gcm="git commit -S -m" @@ -26,33 +61,3 @@ alias gsh="git stash" alias gl="git log" alias sbcl="rlwrap sbcl" - -export TERM=xterm-256color -export GPG_TTY=$(tty) - -# Alt+b stops at forwardslashes -backward-kill-dir () { - local WORDCHARS=${WORDCHARS/\/} - zle backward-kill-word - zle -f kill -} -zle -N backward-kill-dir -bindkey '^[^?' backward-kill-dir - -# ZSH programs -source ~/zsh-stuff/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -source ~/zsh-stuff/spaceship-prompt/spaceship.zsh - -# History -HISTFILE=~/.zsh_history -HISTSIZE=10000 -SAVEHIST=10000 -setopt appendhistory - -eval $(thefuck --alias) - -export PYENV_ROOT="$HOME/.pyenv" -command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" -eval "$(pyenv init -)" - -[ -f "/home/logan/.ghcup/env" ] && source "/home/logan/.ghcup/env" # ghcup-env