Skip to content

Commit

Permalink
Update zsh config
Browse files Browse the repository at this point in the history
  • Loading branch information
philtr committed Dec 22, 2022
1 parent e2efd19 commit 975955b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 12 deletions.
5 changes: 0 additions & 5 deletions .zprofile

This file was deleted.

24 changes: 24 additions & 0 deletions .zshenv
@@ -0,0 +1,24 @@
eval $(/opt/homebrew/bin/brew shellenv)
eval "$(direnv hook zsh)"

export VISUAL=nvim
export EDITOR="$VISUAL"

export CPATH="$(brew --prefix)/include"
export LIBRARY_PATH="$(brew --prefix)/lib"

export XDG_CONFIG_HOME=$HOME/.config
export K9SCONFIG=$XDG_CONFIG_HOME/k9s

export BAT_THEME="base16"
export FZF_DEFAULT_OPTS="--color=16"

export PATH="/opt/homebrew/bin:$PATH:$HOME/.bin"

# Enables history in IEx
export ERL_AFLAGS="-kernel shell_history enabled"
# For compiling erlang
export KERL_CONFIGURE_OPTIONS="--disable-debug --without-javac"
# Enable erlang docs for IEx help function
export KERL_BUILD_DOCS="yes"

14 changes: 7 additions & 7 deletions .zshrc
@@ -1,4 +1,5 @@
alias dots='git --git-dir=$HOME/.dotfiles.git --work-tree=$HOME'
alias dotsh='env GIT_DIR=$HOME/.dotfiles.git GIT_WORK_TREE=$HOME RPROMPT="%K{red}%F{white} dotfiles %F{reset}%K{reset}" `which zsh`'
alias dotstig='GIT_DIR="$HOME/.dotfiles.git" GIT_WORK_TREE="$HOME" tig'

alias vim=nvim
Expand All @@ -9,7 +10,7 @@ bindkey "^R" history-incremental-search-backward

# Use a super basic prompt configuration
export PROMPT="%F{white}%1~ %F{green}%%%f "
export RPROMPT="%F{black}%T"
# export RPROMPT="%F{black}%T"

# Zoxide (fast cd)
if (( $+commands[zoxide] )) ; then
Expand Down Expand Up @@ -63,11 +64,10 @@ zstyle ':completion:*' menu select # select completions with arrow keys
zstyle ':completion:*' group-name '' # group results by category
zstyle ':completion:::::' completer _expand _complete _ignored _approximate # enable approximate matches for completion

export BAT_THEME="base16"
export FZF_DEFAULT_OPTS="--color=16"

export PATH="/opt/homebrew/bin:$PATH:$HOME/.bin"

eval "$(direnv hook zsh)"
# asdf
. $HOME/.asdf/asdf.sh
fpath=(${ASDF_DIR}/completions $fpath)

[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

[ -f ~/.zshrc.local ] && source ~/.zshrc.local

0 comments on commit 975955b

Please sign in to comment.