all repos

dotfiles @ 13c6216796475b5add8c2e9b2d60c8d72613f620

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