-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
executable file
·122 lines (98 loc) · 3.21 KB
/
.zshrc
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
zmodload zsh/zprof
export ZSH="${HOME}/.oh-my-zsh"
alias py="python3"
alias v="nvim"
alias x="xsel -ib"
alias gc="git commit"
alias ss="sleep 3; gnome-screenshot -acf /tmp/test && cat /tmp/test | -i -selection clipboard -target image/png"
alias stop_it=docker stop $(docker ps -a -q)
alias update_dotfiles="dotfiles add .config/coc/ultisnips/*; dotfiles commit -a -m \"Auto commit\"; dotfiles push"
alias rand='openssl rand -base64 60'
export NEOVIDE_MULTIGRID=true
#git init --bare $HOME/.dotfiles
#dotfiles config --local status.showUntrackedFiles no
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
alias pip="python3 -m pip"
alias f="fuck"
alias gimme="sudo apt-get install"
alias yeet="sudo apt-get autoremove --purge"
alias lss='ls -rt'
source $HOME/.cargo/env
export DEBUG='postgraphile:postgres:notice graphile-build:warn'
export DISABLE_UPDATE_PROMPT=true
ZSH_THEME="robbyrussell"
source ~/.oh-my-zsh/oh-my-zsh.sh
openeovideWithJump(){
v -c "OverhaulJump"
}
zle -N openeovideWithJump
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:/usr/lib/jvm/java-11-openjdk-amd64/java
export PATH=$PATH:/usr/lib/postgresql/12/bin
export PATH=$PATH:~/.local/bin/
export PATH=$PATH:~/Scripts
export PATH=$PATH:~/miniconda3/bin:$PATH
plugins=(git)
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=1"
bindkey -v
source "$HOME/.zsh/plugins/zsh-system-clipboard/zsh-system-clipboard.zsh"
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
bindkey "\e" vi-cmd-mode
bindkey -M vicmd '?' history-incremental-search-backward
bindkey -M vicmd "t" openeovideWithJump
export KEYTIMEOUT=1
bindkey '^j' autosuggest-accept
bindkey '^f' 'sdg'
function zle-keymap-select zle-line-init zle-line-finish {
case $KEYMAP in
vicmd) print -n -- "\E]50;CursorShape=0\C-G";; # block cursor
viins|main) print -n -- "\E]50;CursorShape=1\C-G";; # line cursor
esac
zle reset-prompt
zle -R
}
zle -N zle-line-init
zle -N zle-line-finish
zle -N zle-keymap-select
function vi-yank-xclip {
zle vi-yank
echo "$CUTBUFFER" | xsel -ib
}
function pdf() {
evince "$1" &! exit
}
function compress() {
ffmpeg -i $1 -vcodec libx265 -crf 28 output.mp4
}
zle -N vi-yank-xclip
bindkey -M vicmd 'y' vi-yank-xclip
[ -f "/home/eerik/.ghcup/env" ] && source "/home/eerik/.ghcup/env" # ghcup-env
EDITOR=nvim
bindkey -M vicmd '\t' edit-command-line
export PATH="$HOME/.pyenv/bin:$PATH"
#eval "$(pyenv init -)"
#eval "$(pyenv virtualenv-init -)"
zmodload zsh/zprof
alias ls='ls --color=tty -rt'
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
#__conda_setup="$('/home/eerik/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
#if [ $? -eq 0 ]; then
# eval "$__conda_setup"
#else
# if [ -f "/home/eerik/miniconda3/etc/profile.d/conda.sh" ]; then
# . "/home/eerik/miniconda3/etc/profile.d/conda.sh"
# else
# export PATH="/home/eerik/miniconda3/bin:$PATH"
# fi
#fi
#unset __conda_setup
# <<< conda initialize <<<
alias rm="trash-put"
export OPENAI_API_KEY='None'
source secret.sh
DISABLE_UNTRACKED_FILES_DIRTY="true"