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:
parent
06f6a28873
commit
36d308aac3
2 changed files with 9 additions and 3 deletions
6
flake.lock
generated
6
flake.lock
generated
|
@ -22,11 +22,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1696604326,
|
"lastModified": 1696879762,
|
||||||
"narHash": "sha256-YXUNI0kLEcI5g8lqGMb0nh67fY9f2YoJsILafh6zlMo=",
|
"narHash": "sha256-Ud6bH4DMcYHUDKavNMxAhcIpDGgHMyL/yaDEAVSImQY=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "87828a0e03d1418e848d3dd3f3014a632e4a4f64",
|
"rev": "f99e5f03cc0aa231ab5950a15ed02afec45ed51a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -55,6 +55,12 @@ in
|
||||||
# pushd
|
# pushd
|
||||||
setopt AUTO_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
|
# History search, but from beginning
|
||||||
bindkey "^[[A" history-beginning-search-backward
|
bindkey "^[[A" history-beginning-search-backward
|
||||||
bindkey "^[[B" history-beginning-search-forward
|
bindkey "^[[B" history-beginning-search-forward
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue