all repos

dotfiles @ 9b2871dd654503b626409b912c616506a5b320eb

i use rach linux btw

dotfiles/zshrc (view raw)

1
export ZSH="$HOME/.oh-my-zsh"
2
export PATH="$HOME/.yarn/bin:$HOME/bin:$HOME/.local/bin:$GOPATH/bin:$PATH"
3
source ~/.profile
4
5
### Oh my zsh ###
6
ZSH_THEME="nten"                # 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=(python pip node npm yarn pass sudo git encode64)
20
source $ZSH/oh-my-zsh.sh
21
22
23
### Variables ###
24
export EDITOR="nvim"
25
export VISUAL="nvim"
26
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:-javascript}"
35
    nvim -c "let g:startify_disable_at_vimenter = 1 |\
36
        set bt=nofile ls=0 noru nonu nornu |\
37
        Codi $syntax" "$@"
38
}
39
40
41
### Aliases ###
42
alias cls="clear"
43
alias mkdir="mkdir -p"
44
alias sl="ls"
45
alias cp="cp -r"
46
alias du="du -sh"
47
alias df="df -h"
48
alias lns="ln -s"
49
alias uln="unlink"
50
alias rf="rm -rf"
51
52
# Program
53
alias vim="nvim"
54
alias vi="nvim"
55
alias tmux="tmux -2"
56
alias ipython="ipython --no-banner"
57
alias ran="ranger"
58
alias f="fuck"
59
alias firefox-dev="firefox-developer-edition"
60
61
# Exit
62
alias :q="exit"
63
alias :q!="exit"
64
alias q="exit"
65
alias :qw="exit"
66
67
# Navigation
68
alias ..="cd .."
69
alias ...="cd ../.."
70
alias .3="cd ../../.."
71
alias .4="cd ../../../.."
72
alias .5="cd ../../../../.."
73
alias .6="cd ../../../../../.."