From c93dd657819ee2bafb49fe309cc1ee3aac5387e5 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 5 Oct 2019 01:41:47 +0200 Subject: Use home-manager where possible for zsh configuration --- user/zsh/.config/zsh/.zshenv | 69 -------------------------------------------- user/zsh/.config/zsh/.zshrc | 13 --------- 2 files changed, 82 deletions(-) delete mode 100644 user/zsh/.config/zsh/.zshenv (limited to 'user/zsh/.config') diff --git a/user/zsh/.config/zsh/.zshenv b/user/zsh/.config/zsh/.zshenv deleted file mode 100644 index 2f8e5bab..00000000 --- a/user/zsh/.config/zsh/.zshenv +++ /dev/null @@ -1,69 +0,0 @@ -if [[ $SHLVL -eq 1 || -n $DISPLAY ]] -then - if [[ -f $ZDOTDIR/zshenv.local ]] - then - . $ZDOTDIR/zshenv.local - fi - - if [[ -f $ZDOTDIR/zshenv.private ]] - then - . $ZDOTDIR/zshenv.private - fi - - if [[ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]] - then - . $HOME/.nix-profile/etc/profile.d/nix.sh; - export NIX_LINK - fi - - if [[ -e $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh ]] - then - . $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh - fi - - case $OSTYPE in - darwin*) - os=darwin - ;; - linux-gnu) - os=linux - ;; - freebsd*) - os=freebsd - ;; - *) - os=unknown - ;; - esac - - case $MACHTYPE in - *64) - arch=amd64 - ;; - *) - arch=386 - ;; - esac - - if [[ ${path[(I)$HOME/.local/bin ]} ]] - then - path+=($HOME/.local/bin) - fi - - if [[ ${path[(I)$HOME/go/bin ]} ]] - then - path+=($HOME/go/bin) - fi - - if [[ $HOST =~ satoshi ]] - then - EMAIL=alan@satoshipay.io - else - EMAIL=alan@alanpearce.eu - fi - - export GTAGSCONF=~/.globalrc - export GTAGSLABEL=ctags - - export GHQ_ROOT="$HOME/projects:$HOME/go/src:$HOME/quicklisp/local-projects" -fi diff --git a/user/zsh/.config/zsh/.zshrc b/user/zsh/.config/zsh/.zshrc index 2d869f0e..f59187f1 100644 --- a/user/zsh/.config/zsh/.zshrc +++ b/user/zsh/.config/zsh/.zshrc @@ -11,14 +11,6 @@ source $HOME/.zplugin/bin/zplugin.zsh autoload -Uz _zplugin (( ${+_comps} )) && _comps[zplugin]=_zplugin -HISTSIZE=10000 -SAVEHIST=20000 -HISTFILE=${XDG_CACHE_HOME:=$HOME/.cache}/zsh/history -[[ -d ${HISTFILE:h} ]] || mkdir -p ${HISTFILE:h} -setopt extended_history -setopt hist_save_no_dups -setopt hist_ignore_space -unsetopt share_history setopt inc_append_history_time setopt transient_rprompt @@ -80,7 +72,6 @@ alias tsnode="pnpx ts-node" alias wprop="xprop | egrep '^WM_(CLASS|NAME|WINDOW_ROLE|TYPE)'" zmodload zsh/terminfo -bindkey -e bindkey '\e[3~' delete-char bindkey '\C-hd' describe-key-briefly @@ -152,10 +143,6 @@ zplugin load "mollifier/cd-gitroot" zplugin ice wait'[[ -n ${ZLAST_COMMANDS[(r)rm*]} ]]' lucid zplugin load "MikeDacre/careful_rm" -ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=7" -zplugin ice wait'1' lucid if'[[ -z $SSH_CLIENT ]]' -zplugin load "zsh-users/zsh-autosuggestions" - zplugin ice wait'1' lucid zplugin load "arzzen/calc.plugin.zsh" -- cgit 1.4.1