# If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. export ZSH="/home/alex/.oh-my-zsh" # Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes ZSH_THEME="agnoster" # Set list of themes to pick from when loading at random # Setting this variable when ZSH_THEME=random will cause zsh to load # a theme from this variable instead of looking in $ZSH/themes/ # If set to an empty array, this variable will have no effect. # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) # Uncomment the following line to use case-sensitive completion. # CASE_SENSITIVE="true" # Uncomment the following line to use hyphen-insensitive completion. # Case-sensitive completion must be off. _ and - will be interchangeable. # HYPHEN_INSENSITIVE="true" # Uncomment the following line to disable bi-weekly auto-update checks. # DISABLE_AUTO_UPDATE="true" # Uncomment the following line to automatically update without prompting. # DISABLE_UPDATE_PROMPT="true" # Uncomment the following line to change how often to auto-update (in days). export UPDATE_ZSH_DAYS=7 # Uncomment the following line if pasting URLs and other text is messed up. # DISABLE_MAGIC_FUNCTIONS="true" # 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. # 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. # You can set one of the optional three formats: # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" # or set a custom format using the strftime function format specifications, # see 'man strftime' for details. 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? # Standard plugins can be found in $ZSH/plugins/ # Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. plugins=(git adb history sudo fossil) source $ZSH/oh-my-zsh.sh # User configuration # export MANPATH="/usr/local/man:$MANPATH" # You may need to manually set your language environment export LANG=en_US.UTF-8 # Preferred editor for local and remote sessions export EDITOR="ed -vlp'* '" export VISUAL=nvim export BROWSER=qutebrowser # Compilation flags # export ARCHFLAGS="-arch x86_64" # Set personal aliases, overriding those provided by oh-my-zsh libs, # plugins, and themes. Aliases can be placed here, though oh-my-zsh # users are encouraged to define aliases within the ZSH_CUSTOM folder. # For a full list of active aliases, run `alias`. # # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" # # TMUX if which tmux >/dev/null 2>&1; then if [ -z "${TMUX}" ] && ( ! tmux has-session -t messaging ); then tmuxinator start messaging fi if [ -z "${TMUX}" ] && ( ! tmux has-session -t main ); then tmux new -d -s main fi # if [ -z "${TMUX}" ] && ( ! tmux has-session -t editing ); then # tmuxinator start editing # fi # if no session is started, start a new session [ -z "${TMUX}" ] && ( tmux attach -t main ) # when quitting tmux, try to attach #while test -z ${TMUX}; do #tmux attach || break #done fi alias reload="source ~/.zshrc" alias mux="tmuxinator" alias b="buku" alias t="task" alias csc="chicken-csc" alias csi="chicken-csi" alias vimwiki="nvim -c VimwikiIndex" alias ed="ed -vlp'* '" export PATH="/home/alex/bin:$PATH:/home/alex/bin/go" export SDL_GAMECONTROLLERCONFIG="030000001008000001e5000010010000,usb gamepad,platform:Linux,a:b2,b:b1,x:b3,y:b0,back:b8,start:b9,leftshoulder:b4,rightshoulder:b6,dpup:-a1,dpdown:+a1,dpleft:-a0,dpright:+a0," export PASSWORD_STORE_DIR=/home/alex/.password-store/ export BORG_PASSCOMMAND='pass show misc/borgbackup' setopt HIST_IGNORE_ALL_DUPS setopt HIST_IGNORE_SPACE setopt HIST_SAVE_NO_DUPS export HISTCONTROL=ignoreboth:erasedups #export GOPROXY=off #export GOSUMDB=gosum.io+ce6e7565+AY5qEHUk/qmHc5btzW45JVoENfazw8LielDsaI+lEbq6 export GOBIN=~/bin/go/ # -x4 = Set tab stops to 4 spaces. # -F = Don't open with less if entire file fits on screen. # -R = Output "raw" control characters. (colors) export PAGER="less" export LESS="-x4FR" # nicer highlighting #if [ -f "/usr/share/source-highlight/src-hilite-lesspipe.sh" ]; then # ubuntu 12.10: sudo apt-get install source-highlight #export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s" #elif [ -f "/usr/bin/src-hilite-lesspipe.sh" ]; then # fedora 18: sudo yum install source-highlight #export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s" #fi export BAT_THEME="gruvbox" eval "$(zoxide init zsh)" # zoxide export LEDGER_FILE="/home/alex/Documents/finance/current.journal" [ ! -s ~/.config/mpd/pid ] && mpd autoload -U compinit && compinit