Use asdf
This commit is contained in:
parent
2d1bad1ad0
commit
2c30a4f325
67
.zshrc
67
.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
|
# Print a random ascii arts from ~/ascii-arts
|
||||||
if [ -d "$HOME/ascii-arts" ]
|
if [ -d "$HOME/ascii-arts" ]
|
||||||
@ -11,6 +13,39 @@ then
|
|||||||
printf "$(cat $logo)\n\n"
|
printf "$(cat $logo)\n\n"
|
||||||
fi
|
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 ..="cd .."
|
||||||
alias gc="git checkout"
|
alias gc="git checkout"
|
||||||
alias gcm="git commit -S -m"
|
alias gcm="git commit -S -m"
|
||||||
@ -26,33 +61,3 @@ alias gsh="git stash"
|
|||||||
alias gl="git log"
|
alias gl="git log"
|
||||||
|
|
||||||
alias sbcl="rlwrap sbcl"
|
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user