diff --git a/zsh/.config/zsh/.zcompcache/brew_all_commands b/zsh/.config/zsh/.zcompcache/brew_all_commands new file mode 100644 index 0000000..75fa6c9 --- /dev/null +++ b/zsh/.config/zsh/.zcompcache/brew_all_commands @@ -0,0 +1,4 @@ +list=( ${(Q)"${(z)$(<<\EO:list +'aspell-dictionaries' 'bundle' 'determine-rebottle-runners' 'postgresql-upgrade-database' +EO:list +)}"} ) diff --git a/zsh/.config/zsh/.zsh_history b/zsh/.config/zsh/.zsh_history index 0703b3a..0e844d9 100644 --- a/zsh/.config/zsh/.zsh_history +++ b/zsh/.config/zsh/.zsh_history @@ -48,3 +48,49 @@ node -v compdef micro $ZDOTDIR/zsh-exports node -v +zsh-update-plugins +micro $ZDOTDIR/zsh-functions +where vim +brew vim info +brew nvm info +brew info nvm +brew info vim +brew uninstall vim +z dot +git branch +z ve +git branch +node -v +where node +topgrade +micro $ZDOTDIR/zsh-exports +micro $ZDOTDIR/zsh-exports +node -v +npm uninstall --lts +npm uninstall +nvm uninstall --lts +nvm deactivate --lts +nvm uninstall --lts +where node +brew uninstall --zap nvm +ls +ls -a +rm -rf .nvm +micro $ZDOTDIR/zsh-exports +brew search node +brew info node +brew info node@16 +brew info nodebrew +brew install node@16 +echo 'export PATH="/opt/homebrew/opt/node@16/bin:$PATH"' >> ~/.zshrc +node -v +micro $ZDOTDIR/zsh-exports +node -v +where node +node -v +node -v +micro $ZDOTDIR/.zshrc +topgrade +brew install --cask google-drive +brew uninstall --zap google-drive +rm -f /Users/trivk/Library/Application Support/FileProvider/com.google.drivefs.fpext diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index d1ebd01..70ac1da 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -14,6 +14,13 @@ unsetopt BEEP # completions + +# for brew +if type brew &>/dev/null +then + FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}" +fi + autoload -Uz compinit zstyle ':completion:*' menu select # zstyle ':completion::complete:lsof:*' menu yes select @@ -80,3 +87,5 @@ autoload edit-command-line; zle -N edit-command-line export EDITOR="micro" export TERMINAL="kitty" export BROWSER="floorp" +export PAGE="bat" +export VISUAL="micro" diff --git a/zsh/.config/zsh/zsh-exports b/zsh/.config/zsh/zsh-exports index 4ff3d3b..cbe127a 100644 --- a/zsh/.config/zsh/zsh-exports +++ b/zsh/.config/zsh/zsh-exports @@ -4,9 +4,6 @@ HISTSIZE=1000000 SAVEHIST=1000000 export PATH="$HOME/.local/bin":$PATH export MANWIDTH=999 - -export NVM_DIR="$HOME/.nvm" -[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm -# [ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion +export PATH="/opt/homebrew/opt/node@16/bin:$PATH" eval "$(zoxide init zsh)"