-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
98 lines (76 loc) · 2.82 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
# Compatibility for emacs tramp
[[ $TERM == "tramp" ]] && unsetopt zle && PS1='$ ' && return
##########################################
# vi mode
# https://rm-rf.ca/posts/2020/zsh-vi-mode/
##########################################
bindkey -v
# `v` is already mapped to visual mode, so we need to use a different key to
# open Vim
bindkey -M vicmd "^V" edit-command-line
# Make Vi mode transitions faster (KEYTIMEOUT is in hundredths of a second)
export KEYTIMEOUT=1
# incremental search in insert mode
bindkey "^F" history-incremental-search-forward
bindkey "^R" history-incremental-search-backward
# beginning search with arrow keys and j/k
bindkey "^[OA" up-line-or-beginning-search
bindkey "^[OB" down-line-or-beginning-search
bindkey -M vicmd "k" up-line-or-beginning-search
bindkey -M vicmd "j" down-line-or-beginning-search
# beginning search in insert mode, redundant with the up/down arrows above
# but a little easier to press.
bindkey "^P" history-search-backward
bindkey "^N" history-search-forward
# incremental search in vi command mode
bindkey -M vicmd '?' history-incremental-search-backward
bindkey -M vicmd '/' history-incremental-search-forward
# navigate matches in incremental search
bindkey -M viins '^R' history-incremental-pattern-search-backward
bindkey -M viins '^F' history-incremental-pattern-search-forward
source ~/dotfiles/antigen.zsh
DISABLE_LS_COLORS="true"
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle gitfast
antigen bundle fzf
antigen bundle vi-mode
antigen bundle history-substring-search
# Tell Antigen that you're done.
antigen apply
export EDITOR=vim
# sorry
alias nano='vim'
alias reallynano='/usr/bin/nano'
export NODE_HOME=~/Sync/etc/node-v20.5.1-linux-x64
export JAVA_HOME=~/Sync/etc/graalvm-jdk-21+35.1
# CUDA Stuff
export CUDA_HOME=/usr/local/cuda
export LD_LIBRARY_PATH=$CUDA_HOME/lib64/:$LD_LIBRARY_PATH
# CUDA Compiler (nvcc)
export CUDACXX=$CUDA_HOME/bin/nvcc
export PATH=$PATH:$NODE_HOME/bin/:~/bin/:~/.local/bin/:~/Sync/bin/
# export LLVM_TOOLCHAIN=$(lli --print-toolchain-path)
eval "$(direnv hook zsh)"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Load the theme.
source ~/dotfiles/minimal.zsh-theme
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/joelkuiper/Sync/etc/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/joelkuiper/Sync/etc/miniconda3/etc/profile.d/conda.sh" ]; then
. "/home/joelkuiper/Sync/etc/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/home/joelkuiper/Sync/etc/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
# Put secret configuration settings in ~/.secrets
if [[ -a ~/.secrets ]] then
source ~/.secrets
fi