From 4385c252eb461a0ec9dbf9569a8f9ef7f0664289 Mon Sep 17 00:00:00 2001 From: Michaƫl Ball Date: Tue, 16 Jul 2024 16:12:12 +0100 Subject: Initial commit --- zsh/.zshenv | 12 ++++++++++++ zsh/.zshrc | 33 +++++++++++++++++++++++++++++++++ zsh/.zshrc.zni | 9 +++++++++ 3 files changed, 54 insertions(+) create mode 100644 zsh/.zshenv create mode 100644 zsh/.zshrc create mode 100644 zsh/.zshrc.zni (limited to 'zsh') 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 -- cgit v1.2.3