[zsh] fix java and some other stuff

This commit is contained in:
Afonso Franco 2024-04-18 01:22:27 +01:00
parent 5c3304bebf
commit 2bff5edc9e
Signed by: afonso
SSH key fingerprint: SHA256:aiLbdlPwXKJS5wMnghdtod0SPy8imZjlVvCyUX9DJNk
3 changed files with 19 additions and 34 deletions

View file

@ -15,22 +15,10 @@ setopt HIST_VERIFY
export EDITOR=nvim
export READER=mupdf
#if [ "$(arch)" = "arm64" ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
#else
# eval "$(/usr/local/bin/brew shellenv)"
#fi
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
enable-fzf-tab
# opam configuration
source $HOME/.opam/opam-init/init.zsh > /dev/null 2>&1 || true
eval "$(direnv hook zsh)"
eval "$(/opt/homebrew/bin/brew shellenv)"

15
.zshenv
View file

@ -4,19 +4,4 @@ TRAPUSR1() {
exec "${SHELL}"
fi
}
# Add paths
export PATH="$HOME/.local/share/nvim/mason/bin:$PATH"
export PATH="/Users/afonso/.local/bin:$PATH"
export PATH="/opt/homebrew/bin:$PATH"
export PATH="/opt/homebrew/opt/openjdk@17/bin:$PATH"
export PATH="$HOME/go/bin:$PATH"
export PATH="$HOME/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"
export PATH="$HOME/.ghcup/bin:$PATH"
export DYLD_LIBRARY_PATH="/opt/homebrew/lib:$DYLD_LIBRARY_PATH"
export JAVA_HOME="/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home"
export PATH="$HOME/.miniforge3/bin:$PATH"
export PATH="/opt/homebrew/opt/texlive/bin/:$PATH"
eval "$(/opt/homebrew/bin/brew shellenv)"

24
.zshrc
View file

@ -1,5 +1,17 @@
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Add paths
export PATH="/usr/sbin:/sbin:$PATH"
export PATH="$HOME/.local/share/nvim/mason/bin:$PATH"
export PATH="/Users/afonso/.local/bin:$PATH"
export PATH="/opt/homebrew/bin:$PATH"
export PATH="$HOME/go/bin:$PATH"
export PATH="$HOME/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"
export PATH="$HOME/.ghcup/bin:$PATH"
export PATH="$HOME/.miniforge3/bin:$PATH"
export PATH="/opt/homebrew/opt/openjdk@17/bin:$PATH"
export GOPATH=$HOME/.go
export PATH=$PATH:$GOPATH/bin
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
@ -76,6 +88,7 @@ ZSH_CUSTOM=/Users/afonso/.config/zsh
source $HOME/.config/zsh/themes/gruvbox_dark.zsh
source $HOME/.config/zsh/overrides.zsh
zvm_after_init_commands+=('[ -f $HOME/.fzf.zsh ] && source $HOME/.fzf.zsh')
plugins=(zsh-vi-mode git sudo macos tmux command-not-found web-search zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting fzf-tab)
@ -129,11 +142,10 @@ else
else
export PATH="/Users/afonso/.miniforge3/bin:$PATH"
fi
if [ -f "/Users/afonso/.miniforge3/etc/profile.d/mamba.sh" ]; then
. "/Users/afonso/.miniforge3/etc/profile.d/mamba.sh"
fi
fi
unset __conda_setup
if [ -f "/Users/afonso/.miniforge3/etc/profile.d/mamba.sh" ]; then
. "/Users/afonso/.miniforge3/etc/profile.d/mamba.sh"
fi
# <<< conda initialize <<<