mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
72 lines
1.9 KiB
Bash
72 lines
1.9 KiB
Bash
export ZSH="$HOME/.oh-my-zsh"
|
|
export PATH="$HOME/bin:$HOME/.local/bin:$GOPATH/bin:$PATH"
|
|
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 URL 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 git 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
|
|
}
|
|
function codi() {
|
|
local syntax="${1:-python}"
|
|
nvim -c "let g:startify_disable_at_vimenter = 1 |\
|
|
set bt=nofile ls=0 noru nonu nornu |\
|
|
Codi $syntax" "$@"
|
|
}
|
|
|
|
|
|
### Aliases ###
|
|
alias cls="clear"
|
|
alias mkdir="mkdir -p"
|
|
alias sl="ls"
|
|
alias cp="cp -r"
|
|
alias du="du -sh"
|
|
alias df="df -h"
|
|
alias lns="ln -s"
|
|
alias uln="unlink"
|
|
alias rf="rm -rf"
|
|
|
|
# Program
|
|
alias vim="nvim"
|
|
alias vi="nvim"
|
|
alias tmux="tmux -2"
|
|
alias ipython="ipython --no-banner"
|
|
alias ran="ranger"
|
|
|
|
# Exit
|
|
alias :q="exit"
|
|
alias :q!="exit"
|
|
alias q="exit"
|
|
alias :qw="exit"
|
|
|
|
# Navigation
|
|
alias ..="cd .."
|
|
alias ...="cd ../.."
|
|
alias .3="cd ../../.."
|
|
alias .4="cd ../../../.."
|
|
alias .5="cd ../../../../.."
|
|
alias .6="cd ../../../../../.."
|