summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshenv12
-rw-r--r--zsh/.zshrc33
-rw-r--r--zsh/.zshrc.zni9
3 files changed, 54 insertions, 0 deletions
diff --git a/zsh/.zshenv b/zsh/.zshenv
new file mode 100644
index 0000000..e7aa6ab
--- /dev/null
+++ b/zsh/.zshenv
@@ -0,0 +1,12 @@
+if [[ -d $HOME/.npm-packages/bin ]] && [[ ! $PATH == *"$HOME/.npm-packages/bin"* ]] {
+ export PATH="$HOME/.npm-packages/bin:$PATH"
+}
+
+if [[ -d $HOME/.cargo/bin ]] && [[ ! $PATH == *"$HOME/.cargo/bin"* ]] {
+ export PATH="$HOME/.cargo/bin:$PATH"
+}
+
+if [[ -d $HOME/.local/bin ]] && [[ ! $PATH == *"$HOME/.local/bin"* ]] {
+ export PATH="$HOME/.local/bin:$PATH"
+}
+. "$HOME/.cargo/env"
diff --git a/zsh/.zshrc b/zsh/.zshrc
new file mode 100644
index 0000000..50bb646
--- /dev/null
+++ b/zsh/.zshrc
@@ -0,0 +1,33 @@
+# The following lines were added by compinstall
+
+zstyle ':completion:*' completer _complete _ignored
+zstyle ':completion:*' matcher-list ''
+zstyle :compinstall filename '/home/gid/.zshrc'
+
+autoload -Uz compinit
+compinit
+# End of lines added by compinstall
+# Lines configured by zsh-newuser-install
+setopt HIST_IGNORE_SPACE
+HISTFILE=~/.histfile
+HISTSIZE=99999
+SAVEHIST=99999
+setopt sharehistory
+# End of lines configured by zsh-newuser-install
+bindkey -v
+
+bindkey '^P' up-history
+bindkey '^N' down-history
+bindkey '^?' backward-delete-char
+bindkey '^h' backward-delete-char
+bindkey '^w' backward-kill-word
+bindkey '^r' history-incremental-search-backward
+
+PROMPT='%~ > '
+
+export PYENV_ROOT="$HOME/.pyenv"
+[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
+eval "$(pyenv init -)"
+if command -v ngrok &>/dev/null; then
+ eval "$(ngrok completion)"
+fi
diff --git a/zsh/.zshrc.zni b/zsh/.zshrc.zni
new file mode 100644
index 0000000..0e6cff5
--- /dev/null
+++ b/zsh/.zshrc.zni
@@ -0,0 +1,9 @@
+# The following lines were added by compinstall
+
+zstyle ':completion:*' completer _complete _ignored
+zstyle ':completion:*' matcher-list ''
+zstyle :compinstall filename '/home/gid/.zshrc'
+
+autoload -Uz compinit
+compinit
+# End of lines added by compinstall