Smirnov Olexandr
Smirnov Olexandr
ss2316544@gmail.com Update zsh, bspwm, nvim, vscode, tmux. Add fish, 5 years ago
ss2316544@gmail.com Update zsh, bspwm, nvim, vscode, tmux. Add fish, 5 years ago
| 1 | export PATH="$HOME/.yarn/bin:$HOME/bin:$HOME/.application:$PATH" |
| 2 | |
| 3 | ### Oh my zsh ### |
| 4 | export ZSH="$HOME/.oh-my-zsh" |
| 5 | ZSH_THEME="simple" # Set theme. |
| 6 | #CASE_SENSITIVE="true" # Use case-sensitive completion. |
| 7 | #HYPHEN_INSENSITIVE="true" # Case-sensitive completion must be off. |
| 8 | #DISABLE_AUTO_UPDATE="true" # Disable bi-weekly auto-update checks. |
| 9 | DISABLE_UPDATE_PROMPT="true" # Automatically update without prompting. |
| 10 | #DISABLE_MAGIC_FUNCTIONS="true" # If pasting URL and other text is messed up. |
| 11 | #DISABLE_LS_COLORS="true" # Disable colors in ls. |
| 12 | DISABLE_AUTO_TITLE="true" # Disable auto-setting terminal title. |
| 13 | #ENABLE_CORRECTION="true" # Enable command auto-correction. |
| 14 | #COMPLETION_WAITING_DOTS="true" # Display red dots whilst waiting for completion. |
| 15 | export UPDATE_ZSH_DAYS=7 # Change how often to auto-update. |
| 16 | |
| 17 | plugins=(yarn) |
| 18 | source $ZSH/oh-my-zsh.sh |
| 19 | |
| 20 | ### Variables |
| 21 | export EDITOR="nvim" |
| 22 | export VISUAL="nvim" |
| 23 | |
| 24 | ### Functions |
| 25 | bgcolor() { |
| 26 | convert -size 1x1 xc:"$1" /tmp/bgc.png |
| 27 | feh --bg-tile /tmp/bgc.png} |
| 28 | backup() { |
| 29 | cp $1 $1.bak} |
| 30 | |
| 31 | ### Aliases |
| 32 | alias cls="clear" |
| 33 | alias mkdir="mkdir -p" |
| 34 | alias cp="cp -r" |
| 35 | alias du="du -sh" |
| 36 | alias df="df -h" |
| 37 | alias vim="nvim" |
| 38 | alias vi="vim" |
| 39 | alias tmux="tmux -2" |
| 40 | alias :q="exit" |
| 41 | alias ..="cd .." |
| 42 | alias ...="cd ../.." |