summaryrefslogtreecommitdiff
path: root/dot_local/share/toasty/source
diff options
context:
space:
mode:
authorChloe Kudryavtsev <toast@toast.cafe>2020-02-14 19:11:04 -0500
committerChloe Kudryavtsev <toast@toast.cafe>2020-02-14 19:11:04 -0500
commit0d9a5a245a7be7e444d7f34e959dd06cb7b053e0 (patch)
tree3d42142e6ee22dbb72683e0b3549216f17bb6629 /dot_local/share/toasty/source
parentzsh: remove toasty (preparation for git subtree) (diff)
parentSquashed 'dot_local/share/toasty/' content from commit aee4da7 (diff)
Merge commit '858a4a31a251d0eab21dffb96776aca007dafb07' as 'dot_local/share/toasty'
Diffstat (limited to 'dot_local/share/toasty/source')
-rw-r--r--dot_local/share/toasty/source/aliases.zsh4
-rw-r--r--dot_local/share/toasty/source/bindkeys.zsh36
-rw-r--r--dot_local/share/toasty/source/completions.zsh4
-rw-r--r--dot_local/share/toasty/source/env.zsh9
-rw-r--r--dot_local/share/toasty/source/options.zsh36
5 files changed, 89 insertions, 0 deletions
diff --git a/dot_local/share/toasty/source/aliases.zsh b/dot_local/share/toasty/source/aliases.zsh
new file mode 100644
index 0000000..69b9c24
--- /dev/null
+++ b/dot_local/share/toasty/source/aliases.zsh
@@ -0,0 +1,4 @@
+# Various common aliases
+
+alias grep='grep --color=auto'
+alias ls='ls --color=auto' ll='ls -lh' l=ll la='l -a'
diff --git a/dot_local/share/toasty/source/bindkeys.zsh b/dot_local/share/toasty/source/bindkeys.zsh
new file mode 100644
index 0000000..0c78646
--- /dev/null
+++ b/dot_local/share/toasty/source/bindkeys.zsh
@@ -0,0 +1,36 @@
+# this is totally not shamelessly stolen from omz-keybindings and zshwiki
+# definitely not
+# no way
+
+# basic bindings
+bindkey ${terminfo[khome]} beginning-of-line
+bindkey ${terminfo[kend]} end-of-line
+
+bindkey ${terminfo[kdch1]} delete-char
+
+bindkey ${terminfo[kcuu1]} up-line-or-history
+bindkey ${terminfo[kcud1]} down-line-or-history
+
+bindkey ${terminfo[kcub1]} backward-char
+bindkey ${terminfo[kcuf1]} forward-char
+
+bindkey '^?' backward-delete-char
+bindkey ${terminfo[kdch1]} delete-char
+
+# opinionated bindings
+bindkey '^r' history-incremental-search-backward
+bindkey '^[[1;5C' forward-word
+bindkey '^[[1;5D' backward-word
+bindkey ${terminfo[kcbt]} reverse-menu-complete
+
+# make sure terminfo keys make actual sense
+if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then
+ function zle-line-init () {
+ echoti smkx
+ }
+ function zle-line-finish () {
+ echoti rmkx
+ }
+ zle -N zle-line-init
+ zle -N zle-line-finish
+fi
diff --git a/dot_local/share/toasty/source/completions.zsh b/dot_local/share/toasty/source/completions.zsh
new file mode 100644
index 0000000..8c3f0ae
--- /dev/null
+++ b/dot_local/share/toasty/source/completions.zsh
@@ -0,0 +1,4 @@
+zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}"
+
+zstyle ':completion*:cd:*' tag-order local-directories directory-stack path-directories
+zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
diff --git a/dot_local/share/toasty/source/env.zsh b/dot_local/share/toasty/source/env.zsh
new file mode 100644
index 0000000..0da30e0
--- /dev/null
+++ b/dot_local/share/toasty/source/env.zsh
@@ -0,0 +1,9 @@
+# various environment variables that should generally make sense
+
+# primarily for embedded environments with busybox etc, avoid nano. do override
+EDITOR=vi
+
+PAGER=less
+READNULLCMD=less
+
+export EDITOR
diff --git a/dot_local/share/toasty/source/options.zsh b/dot_local/share/toasty/source/options.zsh
new file mode 100644
index 0000000..0f6d0f6
--- /dev/null
+++ b/dot_local/share/toasty/source/options.zsh
@@ -0,0 +1,36 @@
+# changing directories
+setopt autocd
+setopt noautopushd
+setopt pushdignoredups
+setopt pushdtohome
+
+# completion
+setopt alwaystoend
+
+# expansion and globbing
+
+# history
+setopt histexpiredupsfirst
+setopt histignoredups
+setopt histignorespace
+setopt histverify
+setopt incappendhistory
+
+# initialization
+setopt noallexport
+
+# i/o
+setopt noflowcontrol
+setopt interactivecomments
+
+# job control
+setopt longlistjobs
+
+# prompting
+setopt promptsubst
+# setopt transientrprompt ?
+
+# scripts and functions
+
+# shell emulation
+setopt bsdecho