# Lines configured by zsh-newuser-install HISTFILE=~/.histfile HISTSIZE=10000 SAVEHIST=10000 setopt extendedglob nomatch notify histignorespace histignorealldups histnofunctions histnostore histverify incappendhistory unsetopt autocd beep bindkey -v #keybindings fpath=(~/bin $fpath) zstyle :compinstall filename '/home/anthonys/.zshrc' zstyle ":completion:*" complete _complete _ignored _approximate zstyle ":completion:*" glob 1 zstyle ":completion:*" insert-unambiguous true zstyle ':completion:*' menu select zstyle ':completion:*' rehash true zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' zstyle ":completion:*" substitute 1 autoload -Uz up-line-or-beginning-search down-line-or-beginning-search zle -N up-line-or-beginning-search zle -N down-line-or-beginning-search [[ -n "$key[Up]" ]] && bindkey -- "$key[Up]" up-line-or-beginning-search [[ -n "$key[Down]" ]] && bindkey -- "$key[Down]" down-line-or-beginning-search autoload -Uz compinit promptinit promptinit compinit export COMPLETION_WAITING_DOTS="true" export VISUAL='nvim' export EDITOR='nvim' export PATH=$HOME/bin:$PATH # antigen source $HOME/.antigen/antigen.zsh antigen use oh-my-zsh antigen bundle git antigen bundle vi-mode antigen bundle zsh-users/zsh-syntax-highlighting antigen bundle zsh-users/zsh-completions antigen bundle ress997/zsh-completions-anyenv antigen bundle matthieusb/zsh-sdkman if [[ -e ~/.cargo/bin/starship ]]; then eval "$(~/.cargo/bin/starship init zsh)" else antigen theme denysdovhan/spaceship-prompt fi antigen apply alias exa="exa -l --git" # export TERM="tmux-256color" export SHELL="/bin/zsh" function dt() { local session_name session_name=${1:-DefaultSession} tmux new-session -A -s $session_name } function _dt_completion { reply=($(tmux list-sessions -F '#S')) } compctl -K _dt_completion dt function send-to-pane() { tmux pipe-pane -I -t $1 "$2" } function _send_to_pane { reply=($(tmux display-panes -b '')) } compctl -K _send_to_pane send-to-pane function fzf_hist() { local sed_cmd if [[ $(uname -s) == "Darwin" ]]; then sed_cmd=(sed -E) else sed_cmd=(sed -r) fi print -z $( ([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s --tac | $sed_cmd 's/ *[0-9]*\*? *//' | $sed_cmd 's/\\/\\\\/g') } bindkey -s "\C-r" "\eifzf_hist\n" export PATH="$PATH:$HOME/.anyenv/bin" eval "$(anyenv init -)" export PATH="$(yarn global bin):$PATH" #THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! export SDKMAN_DIR="$HOME/.sdkman" [[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh" if [[ -a $HOME/.zshsrc ]]; then source $HOME/.zshsrc else printf "No zshsrc\nOne has been created\n" touch $HOME/.zshsrc fi