-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc##default
77 lines (65 loc) · 2.26 KB
/
.zshrc##default
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Path to your oh-my-zsh installation.
export ZSH="/home/jloehel/.oh-my-zsh"
ZSH_THEME="muse"
plugins=(aws docker git kubectl nmap python suse terraform tmux vagrant virtualenv)
source $ZSH/oh-my-zsh.sh
TERM=xterm-256color
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
# GO stuff
# Where is the go binary
export GOROOT=/usr/lib64/go/1.18
export GONOSUMDB=github.com/inlyse/*
export PATH=$PATH:$GOROOT/bin
# Libraries with executables
export GOPATH=/home/jloehel/golib
export GOPATH=$GOPATH:/home/jloehel/Projekte/go
export PATH=$PATH:$GOPATH/bin
eval "$(pyenv init --path)"
# libpostal
export LIBPOSTAL_DATA_DIR=/usr/share/libpostal
# vim stuff
alias vim="stty stop '' -ixoff ; vim"
# `Frozing' tty, so after any command terminal settings will be restored
ttyctl -f
# fzf
if type rg &> /dev/null; then
export FZF_DEFAULT_COMMAND="fd --type f --hidden --follow --exclude .git"
export FZF_DEFAULT_OPTS='-m --height 50% --border'
fi
# Allow multiple terminal sessions to all append to one zsh command history
setopt append_history
# Save timestamp and duration
setopt extended_history
# Adds commands as they are typed, don't wait until shell exit
setopt inc_append_history
# When trimming history, remove oldest duplicates first
setopt hist_expire_dups_first
# Do not write events to history that are duplicates of previous events
setopt hist_ignore_all_dups
# Remove line from history when first character is a space
setopt hist_ignore_space
# When searching history, don't display already cycled results twice
setopt hist_reduce_blanks
# Don't execute, just expand history
setopt hist_verify
# Import new comands and appends typed commands to history
setopt share_history
test -s ~/.alias && . ~/.alias || true
test -s ~/.bash_alias && . ~/.bash_alias || true
test -s ~/.functions && . ~/.functions || true
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/jloehel/mambaforge/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/jloehel/mambaforge/etc/profile.d/conda.sh" ]; then
. "/home/jloehel/mambaforge/etc/profile.d/conda.sh"
else
export PATH="/home/jloehel/mambaforge/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<