@ -7,12 +7,31 @@ fi
# Disable the log builtin, so we don't conflict with /usr/bin/log
disable log
# Save command history
HISTFILE = ${ ZDOTDIR :- $HOME } /.zsh_history
HISTSIZE = 99999999
SAVEHIST = $HISTSIZE
# Variables
export CASE_SENSITIVE = "true"
export EDITOR = nvim
export GIT_EDITOR = nvim
export PATH = " ${ HOME } /.local/bin/: ${ HOME } /go/bin: ${ HOME } /.cargo/bin: ${ PATH } "
if [ [ $( uname) = = 'Darwin' ] ] ; then
export HOMEBREW_NO_AUTO_UPDATE = 1
export PATH = " /opt/homebrew/lib/ruby/gems/3.3.0: $PATH "
export PATH = " /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0: $PATH "
eval " $( rbenv init - zsh) "
fi
# Auto complete case insensitive
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
# Load colors
autoload -U colors && colors
PROMPT = " %{ $fg [blue]%}%1~ %{ $fg [green]%}>%{ $reset_color %} "
# Automatically cd into typed directory.
setopt autocd
@ -28,13 +47,6 @@ fpath=(~/.zsh $fpath)
bindkey -v
export KEYTIMEOUT = 1
# Use vim keys in tab complete menu:
# bindkey -M menuselect 'h' vi-backward-char
# bindkey -M menuselect 'k' vi-up-line-or-history
# bindkey -M menuselect 'l' vi-forward-char
# bindkey -M menuselect 'j' vi-down-line-or-history
# bindkey -v '^?' backward-delete-char
# Edit line in vim with ctrl-e:
autoload edit-command-line; zle -N edit-command-line
bindkey '^e' edit-command-line
@ -44,15 +56,6 @@ up () {
cd $( printf "%0.0s../" $( seq 1 $1 ) ) ;
}
function cdv ( ) {
if [ [ $( uname) = = 'Darwin' ] ] ; then
cd $( pbpaste)
return
fi
cd $( xclip -selection clipboard -o)
}
function cdf ( ) {
cd $( find . -type d -print | fzf)
}
@ -60,20 +63,8 @@ function cdf () {
# Load aliases
source ~/.config/aliasrc
export EDITOR = nvim
export GIT_EDITOR = nvim
# Save command history
HISTFILE = ${ ZDOTDIR :- $HOME } /.zsh_history
HISTSIZE = 99999999
SAVEHIST = $HISTSIZE
if [ [ $( uname) = = 'Darwin' ] ] ; then
fi
# Android dev config
export ANDROID_HOME = " $HOME /Android/Sdk "
if [ [ $( uname) = = 'Darwin' ] ] ; then
export ANDROID_HOME = " $HOME /Library/Android/sdk "
export PATH = " /opt/homebrew/opt/openjdk/bin: $PATH "
@ -81,29 +72,10 @@ fi
export PATH = " ${ PATH } : ${ ANDROID_HOME } /platform-tools: $ANDROID_HOME /cmdline-tools/latest/bin "
# FNM variables
export PATH = "/run/user/1000/fnm_multishells/20590_1663546026606/bin" :$PATH
export FNM_MULTISHELL_PATH = "/run/user/1000/fnm_multishells/20590_1663546026606"
export FNM_VERSION_FILE_STRATEGY = "local"
export FNM_DIR = "/home/tovi/.local/share/fnm"
export FNM_LOGLEVEL = "info"
export FNM_NODE_DIST_MIRROR = "https://nodejs.org/dist"
export FNM_ARCH = "x64"
rehash
if [ [ $( uname) = = 'Darwin' ] ] ; then
export HOMEBREW_NO_AUTO_UPDATE = 1
export PATH = " /opt/homebrew/lib/ruby/gems/3.3.0: $PATH "
export PATH = " /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0: $PATH "
eval " $( rbenv init - zsh) "
fi
export PATH = " ${ HOME } /.local/bin/: ${ HOME } /go/bin: ${ HOME } /.cargo/bin: ${ PATH } "
source <( fzf --zsh)
export NVM_DIR = " $HOME /.nvm "
[ -s " $NVM_DIR /nvm.sh " ] && \. " $NVM_DIR /nvm.sh " # This loads nvm
[ -s " $NVM_DIR /bash_completion " ] && \. " $NVM_DIR /bash_completion " # This loads nvm bash_completion
source <( fzf --zsh)
eval " $( oh-my-posh init zsh --config $HOME /.config/oh-my-posh/zen.toml) "