all repos

dotfiles @ e3c86138efc52aa469cd50d7908be29e538a25f3

my dotfiles

zshrc (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
export ZSH="$HOME/.oh-my-zsh"
export PATH="$HOME/bin:$HOME/.local/bin:$PATH"
#source ~/.env
source ~/.profile

### Oh my zsh ###
ZSH_THEME="cyan-simple"         # Set theme
#CASE_SENSITIVE="true"          # Use case-sensitive completion.
#HYPHEN_INSENSITIVE="true"      # Case-sensitive completion must be off.
#DISABLE_AUTO_UPDATE="true"     # Disable bi-weekly auto-update checks.
#DISABLE_UPDATE_PROMPT="true"   # Automatically update without prompting.
#DISABLE_MAGIC_FUNCTIONS="true" # If pasting URLs and other text is messed up.
#DISABLE_LS_COLORS="true"       # Disable colors in ls.
#DISABLE_AUTO_TITLE="true"      # Disable auto-setting terminal title.
#ENABLE_CORRECTION="true"       # Enable command auto-correction.
#COMPLETION_WAITING_DOTS="true" # Display red dots whilst waiting for completion.
export UPDATE_ZSH_DAYS=7        # Change how often to auto-update.
export LANG=en_US.UTF-8         # Set locale

plugins=(pip python golang pass sudo heroku git taskwarrior encode64)
source $ZSH/oh-my-zsh.sh


### Variables ###
export EDITOR="nvim"
export VISUAL="nvim"
export GOPATH="$HOME/.go"

### Function ###
function bgcolor {
    convert -size 1x1 xc:$1 /tmp/bgc.png
    feh --bg-tile /tmp/bgc.png
}

### Aliases ###
alias cls="clear"
alias :q="exit"
alias :q!="exit"
alias q="exit"
alias :qw="exit"
alias tmux="tmux -2"
alias vim="nvim"
alias mkdir="mkdir -p"
alias mkd="mkdir"
alias sl="ls"
alias cp="cp -r"
alias du="du -sh"
alias df="df -h"
alias lns="ln -s"
alias uln="unlink"
alias ipython="ipython --no-banner"
alias icat="kitty +kitten icat"
alias ..="cd .."
alias ...="cd ../.."
alias .3="cd ../../.."
alias .4="cd ../../../.."
alias .5="cd ../../../../.."
alias .6="cd ../../../../../.."
eval $(thefuck --alias)