Smirnov Olexandr
Smirnov Olexandr
ss2316544@gmail.com Add BSPWM config, clean dont't use configs, 5 years ago
ss2316544@gmail.com Add BSPWM config, clean dont't use configs, 5 years ago
| 1 | export ZSH="$HOME/.oh-my-zsh" |
| 2 | export PATH="$HOME/bin:$HOME/.local/bin:$GOPATH/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 sudo git 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 | |
| 29 | ### Function ### |
| 30 | function bgcolor { |
| 31 | convert -size 1x1 xc:$1 /tmp/bgc.png |
| 32 | feh --bg-tile /tmp/bgc.png |
| 33 | } |
| 34 | function codi() { |
| 35 | local syntax="${1:-python}" |
| 36 | nvim -c "let g:startify_disable_at_vimenter = 1 |\ |
| 37 | set bt=nofile ls=0 noru nonu nornu |\ |
| 38 | Codi $syntax" "$@" |
| 39 | } |
| 40 | |
| 41 | |
| 42 | ### Aliases ### |
| 43 | alias cls="clear" |
| 44 | alias mkdir="mkdir -p" |
| 45 | alias sl="ls" |
| 46 | alias cp="cp -r" |
| 47 | alias du="du -sh" |
| 48 | alias df="df -h" |
| 49 | alias lns="ln -s" |
| 50 | alias uln="unlink" |
| 51 | alias rf="rm -rf" |
| 52 | |
| 53 | # Program |
| 54 | alias vim="nvim" |
| 55 | alias vi="nvim" |
| 56 | alias tmux="tmux -2" |
| 57 | alias ipython="ipython --no-banner" |
| 58 | alias ran="ranger" |
| 59 | |
| 60 | # Exit |
| 61 | alias :q="exit" |
| 62 | alias :q!="exit" |
| 63 | alias q="exit" |
| 64 | alias :qw="exit" |
| 65 | |
| 66 | # Navigation |
| 67 | alias ..="cd .." |
| 68 | alias ...="cd ../.." |
| 69 | alias .3="cd ../../.." |
| 70 | alias .4="cd ../../../.." |
| 71 | alias .5="cd ../../../../.." |
| 72 | alias .6="cd ../../../../../.." |