dotfiles

My dotfiles.
git clone git://git.ryanmj.xyz/dotfiles.git
Log | Files | Refs | LICENSE

.zshrc (5564B)


      1 # If you come from bash you might have to change your $PATH.
      2 # export PATH=$HOME/bin:/usr/local/bin:$PATH
      3 
      4 # Path to your oh-my-zsh installation.
      5 export ZSH="/home/ryan/.oh-my-zsh"
      6 
      7 # Set name of the theme to load --- if set to "random", it will
      8 # load a random theme each time oh-my-zsh is loaded, in which case,
      9 # to know which specific one was loaded, run: echo $RANDOM_THEME
     10 # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
     11 ZSH_THEME="alanpeabody"
     12 
     13 # Set list of themes to pick from when loading at random
     14 # Setting this variable when ZSH_THEME=random will cause zsh to load
     15 # a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
     16 # If set to an empty array, this variable will have no effect.
     17 # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
     18 
     19 # Uncomment the following line to use case-sensitive completion.
     20 # CASE_SENSITIVE="true"
     21 
     22 # Uncomment the following line to use hyphen-insensitive completion.
     23 # Case-sensitive completion must be off. _ and - will be interchangeable.
     24 # HYPHEN_INSENSITIVE="true"
     25 
     26 # Uncomment the following line to disable bi-weekly auto-update checks.
     27 # DISABLE_AUTO_UPDATE="true"
     28 
     29 # Uncomment the following line to change how often to auto-update (in days).
     30 # export UPDATE_ZSH_DAYS=13
     31 
     32 # Uncomment the following line to disable colors in ls.
     33 # DISABLE_LS_COLORS="true"
     34 
     35 # Uncomment the following line to disable auto-setting terminal title.
     36 # DISABLE_AUTO_TITLE="true"
     37 
     38 # Uncomment the following line to enable command auto-correction.
     39 # ENABLE_CORRECTION="true"
     40 
     41 COMPLETION_WAITING_DOTS="true"
     42 
     43 # Uncomment the following line if you want to disable marking untracked files
     44 # under VCS as dirty. This makes repository status check for large repositories
     45 # much, much faster.
     46 # DISABLE_UNTRACKED_FILES_DIRTY="true"
     47 
     48 # Uncomment the following line if you want to change the command execution time
     49 # stamp shown in the history command output.
     50 # You can set one of the optional three formats:
     51 # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
     52 # or set a custom format using the strftime function format specifications,
     53 # see 'man strftime' for details.
     54 # HIST_STAMPS="mm/dd/yyyy"
     55 
     56 # Would you like to use another custom folder than $ZSH/custom?
     57 # ZSH_CUSTOM=/path/to/new-custom-folder
     58 
     59 # Which plugins would you like to load?
     60 # Standard plugins can be found in ~/.oh-my-zsh/plugins/*
     61 # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
     62 # Example format: plugins=(rails git textmate ruby lighthouse)
     63 # Add wisely, as too many plugins slow down shell startup.
     64 plugins=(git)
     65 
     66 source $ZSH/oh-my-zsh.sh
     67 
     68 #  en_US.UTF-8 UTF-8
     69 export DICPATH='/usr/share/hunspell'
     70 
     71 # User configuration
     72 
     73 export SCRIPTS="$HOME/src/scripts/"
     74 export GOARCH="amd64"
     75 export GOOS="linux"
     76 export CC="gcc"
     77 export CXX="g++"
     78 export CGO_ENABLED="1"
     79 export GOROOT="/usr/lib/go"
     80 export GOBIN="/home/ryan/src/goproj/bin/"
     81 export GOPATH="/home/ryan/src/goproj/"
     82 export PATH="$PATH:$GOROOT/bin:/usr/lib/go/bin/:$SCRIPTS:/home/ryan/.gem/ruby/2.6.0/bin:/root/.gem/ruby/2.6.0/bin:/home/ryan/bin/"
     83 export MUSIC='~/Music/'
     84 export TERMINAL='xterm-256color'
     85 export TERM='xterm-256color'
     86 export EDITOR='emacsclient -c'
     87 export BROWSER='firefox'
     88 
     89 alias srz='source ~/.zshrc'
     90 alias vim='nvim'
     91 alias comd='pandoc --pdf-engine=xelatex -o '
     92 alias rip='abcde -o opus'
     93 alias ls='ls --color -h --group-directories-first'
     94 alias e='emacs -nw'
     95 alias et='emacsclient -t'
     96 alias up='sudo pacman -Syy && sudo pacman -Su'
     97 alias pac='sudo pacman -S'
     98 alias aur='pamac build'
     99 alias latex='lualatex'
    100 alias cls='clear'
    101 alias j='joe'
    102 alias mkd="mkdir -pv"
    103 alias untar='tar -xzvf'
    104 alias scheme='guile'
    105 alias lisp='sbcl'
    106 alias pdf='zathura'
    107 alias cfz='emacsclient -t ~/.zshrc'
    108 alias cfe='emacsclient -t ~/.emacs ~/.econfig.org'
    109 alias godot='/home/ryan/src/godot/bin/godot.x11.tools.64.mono'
    110 
    111 # export MANPATH="/usr/local/man:$MANPATH"
    112 
    113 # You may need to manually set your language environment
    114 # export LANG=en_US.UTF-8
    115 
    116 # Preferred editor for local and remote sessions
    117 # if [[ -n $SSH_CONNECTION ]]; then
    118 #   export EDITOR='vim'
    119 # else;
    120 #   export EDITOR='mvim'
    121 # fi
    122 
    123 extract () {
    124     if [ -f $1 ] ; then
    125         case $1 in
    126             *.tar.bz2)   tar xvjf $1;;
    127             *.tar.gz)    tar xvzf $1;;
    128             *.bz2)       bunzip2 $1 ;;
    129             *.rar)       unrar x $1 ;;
    130             *.gz)        gunzip $1  ;;
    131             *.tar)       tar xvf $1 ;;
    132             *.tbz2)      tar xvjf $1;;
    133             *.tgz)       tar xvzf $1;;
    134             *.zip)       unzip $1   ;;
    135             *.Z)         uncompress $1  ;;
    136             *.7z)        7z x $1;;
    137             *tar.xz)		tar xf $1;;
    138             *) echo "don't know how to extract '$1'..." ;;
    139         esac
    140     else
    141         echo "'$1' is not a valid file!"
    142     fi
    143 }
    144 
    145 # Compilation flags
    146 # export ARCHFLAGS="-arch x86_64"
    147 
    148 # Set personal aliases, overriding those provided by oh-my-zsh libs,
    149 # plugins, and themes. Aliases can be placed here, though oh-my-zsh
    150 # users are encouraged to define aliases within the ZSH_CUSTOM folder.
    151 # For a full list of active aliases, run `alias`.
    152 #
    153 # Example aliases
    154 # alias zshconfig="mate ~/.zshrc"
    155 # alias ohmyzsh="mate ~/.oh-my-zsh"
    156 function vterm_printf(){
    157     if [ -n "$TMUX" ]; then
    158         # Tell tmux to pass the escape sequences through
    159         # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324)
    160         printf "\ePtmux;\e\e]%s\007\e\\" "$1"
    161     elif [ "${TERM%%-*}" = "screen" ]; then
    162         # GNU screen (screen, screen-256color, screen-256color-bce)
    163         printf "\eP\e]%s\007\e\\" "$1"
    164     else
    165         printf "\e]%s\e\\" "$1"
    166     fi
    167 }