all repos

dotfiles @ 73ebbfbe50e81802ef9b78203672b87f1b5383ef

i use rach linux btw

dotfiles/zshrc (view raw)

1
export ZSH="$HOME/.oh-my-zsh"
2
export PATH="$HOME/bin:$HOME/.local/bin:$PATH"
3
source ~/.profile
4
5
### Oh my zsh ###
6
ZSH_THEME="cyan-simple"         # Set theme
7
#CASE_SENSITIVE="true"          # Use case-sensitive completion.
8
#HYPHEN_INSENSITIVE="true"      # Case-sensitive completion must be off.
9
#DISABLE_AUTO_UPDATE="true"     # Disable bi-weekly auto-update checks.
10
#DISABLE_UPDATE_PROMPT="true"   # Automatically update without prompting.
11
#DISABLE_MAGIC_FUNCTIONS="true" # If pasting URL and other text is messed up.
12
#DISABLE_LS_COLORS="true"       # Disable colors in ls.
13
DISABLE_AUTO_TITLE="true"       # Disable auto-setting terminal title.
14
#ENABLE_CORRECTION="true"       # Enable command auto-correction.
15
#COMPLETION_WAITING_DOTS="true" # Display red dots whilst waiting for completion.
16
export UPDATE_ZSH_DAYS=7        # Change how often to auto-update.
17
export LANG=en_US.UTF-8         # Set locale
18
19
plugins=(pip python golang pass emacs sudo heroku git taskwarrior encode64)
20
source $ZSH/oh-my-zsh.sh
21
22
23
### Variables ###
24
export EDITOR="nvim"
25
export VISUAL="nvim"
26
export GOPATH="$HOME/Go"
27
28
### Function ###
29
function bgcolor {
30
    convert -size 1x1 xc:$1 /tmp/bgc.png
31
    feh --bg-tile /tmp/bgc.png
32
}
33
function codi() {
34
  local syntax="${1:-python}"
35
  nvim -c "let g:startify_disable_at_vimenter = 1 |\
36
      Codi $syntax" "$@"
37
}
38
39
### Aliases ###
40
alias cls="clear"
41
alias mkdir="mkdir -p"
42
alias sl="ls"
43
alias cp="cp -r"
44
alias du="du -sh"
45
alias df="df -h"
46
alias lns="ln -s"
47
alias uln="unlink"
48
alias rf="rm -rf"
49
50
# Program
51
alias vim="nvim"
52
alias vi="nvim"
53
alias tmux="tmux -2"
54
alias ipython="ipython --no-banner"
55
56
# Exit
57
alias :q="exit"
58
alias :q!="exit"
59
alias q="exit"
60
alias :qw="exit"
61
62
# Navigation
63
alias ..="cd .."
64
alias ...="cd ../.."
65
alias .3="cd ../../.."
66
alias .4="cd ../../../.."
67
alias .5="cd ../../../../.."
68
alias .6="cd ../../../../../.."
69
70
# Doom emacs
71
alias doomsync="$HOME/.emacs.d/bin/doom sync"
72
alias doomupgrade="$HOME/.emacs.d/bin/doom upgrade"
73
alias doomdoctor="$HOME/.emacs.d/bin/doom doctor"
74
alias doom="$HOME/.emacs.d/bin/doom"