More zsh stuff

This commit is contained in:
2021-12-12 15:36:57 -05:00
parent ff24687f6a
commit dc72e97bd1
9 changed files with 24 additions and 2192 deletions

View File

@@ -1,4 +0,0 @@
list=( ${(Q)"${(z)$(<<\EO:list
'aspell-dictionaries' 'determine-rebottle-runners' 'postgresql-upgrade-database' 'services'
EO:list
)}"} )

File diff suppressed because it is too large Load Diff

View File

@@ -1,16 +1,12 @@
# configure keeping history of commands
HISTSIZE=200
# TODO: move to $ZDOTDIR/.zsh_history
HISTFILE=~/.zsh_history
setopt appendhistory
setopt sharehistory
setopt incappendhistory
# Allow useful scripts in ~/.bin to be in the search path.
export PATH=~/.bin:$PATH
autoload -Uz compinit
zstyle ':completion:*' menu select
@@ -30,6 +26,7 @@ autoload -Uz colors && colors
source "$ZDOTDIR/zsh-functions"
zsh_add_file "zsh-aliases"
zsh_add_file "zsh-exports"
# Plugins
zsh_add_plugin "zsh-users/zsh-autosuggestions"
@@ -41,7 +38,4 @@ fpath+="$ZDOTDIR/plugins/pure"
autoload -U promptinit; promptinit
prompt pure
export EDITOR="nvim"
cat < "$ZDOTDIR/banner"

View File

@@ -2,6 +2,7 @@
#alias zshconfig="$ZDOTDIR"
alias zdots() { nvim "$ZDOTDIR" }
alias dots() { nvim ~/.dotfiles }
alias reload() { source "$ZDOTDIR/.zshrc" }
alias mkcd() { mkdir $1 && cd $1 }
alias l() { ls -lah "$@" }

View File

@@ -0,0 +1,17 @@
#!/bin/sh
HISTSIZE=200
HISTFILE=$ZDOTDIR/history
# Allow useful scripts in ~/.bin to be in the search path.
export PATH=~/.bin:$PATH
# zsh-completions installed by homebrew
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
autoload -Uz compinit
compinit
fi
export EDITOR="nvim"

View File

@@ -1,2 +0,0 @@
export ZDOTDIR=$HOME/.config/zsh
source "$HOME/.config/zsh/.zshrc"