# Lines configured by zsh-newuser-install # zmodload zsh/zprof HISTFILE=~/.histfile HISTSIZE=10000 SAVEHIST=10000 setopt extendedglob nomatch notify histignorespace histignorealldups histnofunctions histnostore histverify incappendhistory unsetopt autocd beep bindkey -v export RPROMPT='' # Fixes a side-effect of the vi-mode oh-my-zsh plugin export KEYTIMEOUT=1 #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 source <(antibody init) antibody bundle < ~/.zsh_plugins.txt if [[ -e ~/.cargo/bin/starship ]]; then eval "$(~/.cargo/bin/starship init zsh)" else antibody bundle denysdovhan/spaceship-prompt fi alias exa="exa -l --git" function dt() { local session_name session_name=${1:-DefaultSession} tmux -2 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 # the following lines sourced from the fzf distribution files export FZF_TMUX=1 fzf-history-widget() { local selected num setopt localoptions noglobsubst noposixbuiltins pipefail 2> /dev/null selected=( $(fc -rl 1 | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS --query=${(qqq)LBUFFER} +m" fzf-tmux -d40%) ) local ret=$? if [ -n "$selected" ]; then num=$selected[1] if [ -n "$num" ]; then zle vi-fetch-history -n $num fi fi zle reset-prompt return $ret } zle -N fzf-history-widget bindkey '^R' fzf-history-widget ### END FZF DISTRIBUTION SOURCE function _just() { reply=($(just --summary)) } compctl -K _just just menu-complete 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 # zprof