dotfiles/zsh/.zshrc

63 lines
1.5 KiB
Bash
Raw Normal View History

2019-03-11 23:59:49 +01:00
# Paths
export ZSH="$HOME/.oh-my-zsh"
export PATH="$PATH:$HOME/.go/bin:$HOME/.local/bin:$HOME/.cargo/bin:$HOME/.dotnet/tools:$HOME/.emacs.d/bin"
2019-12-04 01:32:36 +01:00
export DOTNET_CLI_TELEMETRY_OPTOUT=1
export WORKSPACE=$HOME/workspace_l
export ZSHRC="$HOME/.zshrc"
export VISUAL="nvim"
export EDITOR="nvim"
export KUBECONFIG=$HOME/.kube/config
2021-05-29 21:46:59 +02:00
# History
export HISTSIZE=50000
export SAVEHIST=50000
2021-05-29 21:46:59 +02:00
export HISTTIMEFORMAT="[%F %T] "
setopt INC_APPEND_HISTORY
2021-05-29 21:46:59 +02:00
setopt EXTENDED_HISTORY
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_ALL_DUPS
2021-05-29 21:46:59 +02:00
setopt HIST_FIND_NO_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_SAVE_NO_DUPS
setopt SHARE_HISTORY
# Alias
alias q="exit"
alias vim="nvim"
alias cat="bat --pager=never"
alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'
2019-03-11 23:59:49 +01:00
alias xsel='xsel -ib'
alias df="df -h"
alias picpaste="xclip -selection clipboard -t image/png -o"
alias wttr="curl wttr.in/Essen"
alias notify="dunstify \"ping~\""
alias latexmk="latexmk -f -pdf -interaction=nonstopmode"
alias picotik="picocom --b 115200 /dev/ttyUSB0"
alias kc="kubectl"
alias nspeedl="curl -s -o /dev/null -w \"DNS Lookup: %{time_namelookup}\nTCP Connect: %{time_connect}\nTotal: %{time_total}\n\" http://www.tudattr.dev"
2019-03-11 23:59:49 +01:00
# Theme
ZSH_THEME="agnoster"
2019-03-11 23:59:49 +01:00
# Plugins
plugins=(
git
history
2021-05-29 21:46:59 +02:00
z
zsh-eza
2019-03-11 23:59:49 +01:00
)
2018-10-05 21:21:11 +02:00
randpw() { < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-$1};echo;};
autoload -U +X bashcompinit && bashcompinit
autoload -Uz compinit && compinit
# Source
source $ZSH/oh-my-zsh.sh
eval "$(starship init zsh)"