summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2022-07-06 19:52:19 -0500
committerBrad Clawsie <brad@b7j0c.org>2022-07-06 19:52:19 -0500
commite1c7d5b4281aac3fdcc9f3a1799f0d6d501977c2 (patch)
tree50a7ffceabd566ff221230be3b2c0b441adac931 /zsh
parentd8f52456a3b4888ff3f4f1a06e487508dbe3d389 (diff)
refactor
Diffstat (limited to 'zsh')
-rw-r--r--zsh/dotzshrc-arch47
-rw-r--r--zsh/dotzshrc-debian48
2 files changed, 95 insertions, 0 deletions
diff --git a/zsh/dotzshrc-arch b/zsh/dotzshrc-arch
new file mode 100644
index 0000000..b9920c5
--- /dev/null
+++ b/zsh/dotzshrc-arch
@@ -0,0 +1,47 @@
+export HISTFILE=$HOME/.histfile
+export HISTSIZE=1000
+export SAVEHIST=1000
+bindkey -e
+zstyle :compinstall filename "$HOME/.zshrc"
+autoload -Uz compinit
+compinit
+
+PS1="$ "
+
+export PERL_UNICODE="AS"
+export PERL_READLINE_NOWARN="yes"
+export LOCAL_INC_PATHS="$HOME/repos/grokloc-perl5/lib:$HOME/repos/grokloc-perl5/service/app/lib"
+PERL5LIB="$LOCAL_INC_PATHS:$HOME/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}";
+export PERL5LIB;
+
+export HOMEBINPATHS="$HOME/bin:$HOME/perl5/bin:$HOME/go/bin:$HOME/.cargo/bin"
+export PATH="$HOMEBINPATHS:$PATH"
+
+export ALTERNATE_EDITOR="emacs" EDITOR="emacsclient" VISUAL="emacsclient"
+export LC_ALL=en_US.UTF-8
+export LANG=en_US.UTF-8
+
+export GPG_TTY=$(tty)
+gpg-connect-agent updatestartuptty /bye >/dev/null
+
+alias c=clear
+alias h=history
+
+setopt autopushd pushdminus pushdsilent pushdtohome
+setopt autocd
+setopt cdablevars
+setopt interactivecomments
+setopt noclobber
+setopt HIST_REDUCE_BLANKS
+setopt HIST_IGNORE_SPACE
+setopt SH_WORD_SPLIT
+
+zstyle ':completion:*' completer _complete _match _approximate
+zstyle ':completion:*:match:*' original only
+zstyle ':completion:*:approximate:*' max-errors 1 numeric
+zstyle ':completion:*:*:kill:*' menu yes select
+zstyle ':completion:*:kill:*' force-list always
+zstyle ':completion:*:cd:*' ignore-parents parent pwd
+
+clear;
+
diff --git a/zsh/dotzshrc-debian b/zsh/dotzshrc-debian
new file mode 100644
index 0000000..bcc1cc8
--- /dev/null
+++ b/zsh/dotzshrc-debian
@@ -0,0 +1,48 @@
+export HISTFILE=$HOME/.histfile
+export HISTSIZE=1000
+export SAVEHIST=1000
+bindkey -e
+zstyle :compinstall filename "$HOME/.zshrc"
+autoload -Uz compinit
+compinit
+
+PS1="$ "
+
+# perl
+export PERL_UNICODE="AS"
+export PERL_READLINE_NOWARN="yes"
+
+# paths
+export HOMEBINPATHS="$HOME/bin"
+export PATH="$HOMEBINPATHS:$PATH"
+
+# text
+export ALTERNATE_EDITOR="emacs" EDITOR="emacsclient" VISUAL="emacsclient"
+export LC_ALL=en_US.UTF-8
+export LANG=en_US.UTF-8
+
+export GPG_TTY=$(tty)
+gpg-connect-agent updatestartuptty /bye >/dev/null
+
+# zsh
+alias c=clear
+alias h=history
+
+setopt autopushd pushdminus pushdsilent pushdtohome
+setopt autocd
+setopt cdablevars
+setopt interactivecomments
+setopt noclobber
+setopt HIST_REDUCE_BLANKS
+setopt HIST_IGNORE_SPACE
+setopt SH_WORD_SPLIT
+
+zstyle ':completion:*' completer _complete _match _approximate
+zstyle ':completion:*:match:*' original only
+zstyle ':completion:*:approximate:*' max-errors 1 numeric
+zstyle ':completion:*:*:kill:*' menu yes select
+zstyle ':completion:*:kill:*' force-list always
+zstyle ':completion:*:cd:*' ignore-parents parent pwd
+
+clear;
+