dotfiles/zsh/zshrc

150 lines
5 KiB
Bash
Raw Normal View History

# Path to your oh-my-zsh installation.
export ZSH=/home/kellya/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
2018-06-25 15:46:53 -04:00
COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"
HIST_STAMPS="yyyy-mm-dd"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
# plugins=(git)
2021-03-26 16:11:36 -04:00
plugins=(sudo taskwarrior common-aliases git-flow github keybase vi-mode fzf python)
# User configuration
2021-03-15 08:48:51 -04:00
export PATH="/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/kellya/bin:/home/kellya/incoming/git-annex.linux:/home/kellya/bin/keybase/bin:/home/kellya/.local/bin"
# export MANPATH="/usr/local/man:$MANPATH"
DISABLE_AUTO_UPDATE='true'
source $ZSH/oh-my-zsh.sh
source ~/dotfiles/zsh/zsh-git-prompt/zshrc.sh
2014-10-24 22:48:44 -04:00
RPS1='$(git_super_status)'
#source ~/.autoenv/activate.sh
# changing over to direnv from autoenv
eval "$(direnv hook zsh)"
# Add PS1 for python virtualenv in direnv
show_virtual_env() {
if [[ -n "$VIRTUAL_ENV" && -n "$DIRENV_DIR" ]]; then
echo "($(basename $VIRTUAL_ENV))"
fi
}
PS1='$(show_virtual_env)'$PS1
#--------- End of direnv block ------------------------------------------------
unsetopt histverify
alias in='task add +in'
alias rtask="task rc:/home/kellya/.taskrc_tinslin"
alias atwork="task context work"
alias athome="task context home"
alias atschool="task context school"
alias atnone="task context none;"
2020-04-30 09:31:20 -04:00
alias icat="kitty +kitten icat"
alias d="kitty +kitten diff"
#eval "$(ntfy shell-integration)"
source /usr/share/gems/gems/tmuxinator-0.6.11/completion/tmuxinator.zsh
source ~/.private_aliases
2020-04-30 09:31:20 -04:00
source /usr/bin/virtualenvwrapper.sh
#Aliases
alias dum='du -sh *|egrep ".*\.?[0-9]M"'
alias keploy='echo -e "\e[101;97mKeploy was removed, its functionality is already built in ssh-copy-id, just use that\e[49m"; ssh-copy-id'
2018-12-11 15:11:26 -05:00
alias shrug='curl shrug.io|xclip'
alias weather='curl wttr.in'
2020-04-30 09:31:20 -04:00
alias ipython='ipython --no-confirm-exit'
#Variable Exports
export EDITOR='vim'
2018-06-25 15:46:53 -04:00
export PATH="$PATH:/home/kellya/go/bin"
2018-12-11 15:11:26 -05:00
export WORKON_HOME=/mnt/vdisks/projects/python_virtualenvs
export LPASS_AGENT_TIMEOUT=0
export PATH="/usr/local/heroku/bin:$PATH"
2018-12-11 15:11:26 -05:00
#Source all the custom functions
# Load custom functions
for f (~/.functions/**/*(N.)) . $f
#This didn't work, but I'll leave it here in case someday it does
#export AGNOSTER_PROMPT_SEGMENTS=("prompt_status" "prompt_context" "prompt_virtualenv" "prompt_dir" "prompt_end")
2018-06-25 15:46:53 -04:00
cat /home/kellya/.local/share/franklinlogo.txt
2020-04-30 09:31:20 -04:00
#Stop the annoying git prompt
prompt_git () {
:
}
2020-06-11 13:58:06 -04:00
# hyperdrive autocomplete setup
2021-03-15 08:48:51 -04:00
HYPERDRIVE_AC_ZSH_SETUP_PATH=/home/kellya/.cache/hyperdrive-daemon/autocomplete/zsh_setup && test -f $HYPERDRIVE_AC_ZSH_SETUP_PATH && source $HYPERDRIVE_AC_ZSH_SETUP_PATH;
alias vi=nvim
alias ashow="litecli --auto-vertical-output /home/kellya/snap/accountable2you/common/storage.db -e \"select * from log;\""
alias akill="litecli --auto-vertical-output /home/kellya/snap/accountable2you/common/storage.db -e \"delete from log;\""
fpath+=~/.zfunc
compinit
kitty + complete setup zsh | source /dev/stdin
#
# Enable 'z' tracking for directory speediness
source /usr/libexec/z.sh
export PATH="$HOME/.poetry/bin:$PATH"
#function chpwd() {
# if [ -r $PWD/.zsh_config ]; then
# source $PWD/.zsh_config
# else
# source $HOME/.zshrc
# fi
#}
2021-03-26 16:11:36 -04:00
#
#FZF stuff
source /usr/share/fzf/shell/key-bindings.zsh
source ~/.oh-my-zsh/completions/fzf_completion
export FZF_DEFAULT_OPTS="--extended"
export FZF_DEFAULT_COMMAND="fd --type f"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"