Re-introduce keysrc

keysrc allows for flexible, manual per-device configuration. Contrary to its name, it should not be used for keys - it's simply used as scratch.

Should its name change? Likely!
This commit is contained in:
Spotlight 2023-10-10 21:18:00 -05:00
parent 06f6a28873
commit 36d308aac3
Signed by: spotlight
GPG key ID: 874AA355B3209BDC
2 changed files with 9 additions and 3 deletions

6
flake.lock generated
View file

@ -22,11 +22,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1696604326,
"narHash": "sha256-YXUNI0kLEcI5g8lqGMb0nh67fY9f2YoJsILafh6zlMo=",
"lastModified": 1696879762,
"narHash": "sha256-Ud6bH4DMcYHUDKavNMxAhcIpDGgHMyL/yaDEAVSImQY=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "87828a0e03d1418e848d3dd3f3014a632e4a4f64",
"rev": "f99e5f03cc0aa231ab5950a15ed02afec45ed51a",
"type": "github"
},
"original": {

View file

@ -55,6 +55,12 @@ in
# pushd
setopt AUTO_PUSHD
# Per-device, flexible configuration
# (Contrary to its name, it should not house keys.)
if [ -f $HOME/.keysrc ]; then
source $HOME/.keysrc
fi
# History search, but from beginning
bindkey "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward