mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-11-06 03:12:24 +00:00
ZSH s tuff
This commit is contained in:
parent
9ca7b53867
commit
1ab8660ee8
6 changed files with 27 additions and 7 deletions
|
@ -1,10 +1,4 @@
|
||||||
{
|
{
|
||||||
"optOut": false,
|
"optOut": false,
|
||||||
"lastUpdateCheck": 1598621325936,
|
"lastUpdateCheck": 1599398002350
|
||||||
"update": {
|
|
||||||
"latest": "6.14.8",
|
|
||||||
"current": "6.14.6",
|
|
||||||
"type": "patch",
|
|
||||||
"name": "npm"
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -54,6 +54,8 @@ in
|
||||||
nodejs
|
nodejs
|
||||||
nodePackages.bash-language-server
|
nodePackages.bash-language-server
|
||||||
nodePackages.dockerfile-language-server-nodejs
|
nodePackages.dockerfile-language-server-nodejs
|
||||||
|
rust-analyzer
|
||||||
|
cargo-outdated
|
||||||
|
|
||||||
(addFlags bat "bat" "--theme base16")
|
(addFlags bat "bat" "--theme base16")
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ in
|
||||||
dragon-drop
|
dragon-drop
|
||||||
polybarFull
|
polybarFull
|
||||||
discord
|
discord
|
||||||
|
my-st
|
||||||
#hyper-haskell
|
#hyper-haskell
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,8 @@ let
|
||||||
(mapAttrs (k: v: ''abbr --session ${k}="${v}" >/dev/null 2>&1'') abbrs)
|
(mapAttrs (k: v: ''abbr --session ${k}="${v}" >/dev/null 2>&1'') abbrs)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
keybinds-code = lib.builtins.readFile ./keybinds.zsh;
|
||||||
|
|
||||||
manFunction = ''
|
manFunction = ''
|
||||||
function man() {
|
function man() {
|
||||||
env \
|
env \
|
||||||
|
@ -166,6 +168,7 @@ in
|
||||||
${manFunction}
|
${manFunction}
|
||||||
|
|
||||||
${builtins.readFile ./prompt.zsh}
|
${builtins.readFile ./prompt.zsh}
|
||||||
|
${builtins.readFile ./keybinds.zsh}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
plugins = let
|
plugins = let
|
||||||
|
|
8
files/nix-stuff/nixpkgs/modules/term/zsh/keybinds.zsh
Normal file
8
files/nix-stuff/nixpkgs/modules/term/zsh/keybinds.zsh
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
_pipr_expand_widget() {
|
||||||
|
emulate -LR zsh
|
||||||
|
</dev/tty pipr --out-file /tmp/pipr_out --default "$LBUFFER" >/dev/null
|
||||||
|
LBUFFER=$(< /tmp/pipr_out)
|
||||||
|
}
|
||||||
|
zle -N _pipr_expand_widget
|
||||||
|
bindkey '\ea' _pipr_expand_widget
|
||||||
|
|
|
@ -59,6 +59,18 @@
|
||||||
"url": "https://github.com/olets/zsh-abbr/archive/703ba651e4f9c0ae18402e2462177e6253585386.tar.gz",
|
"url": "https://github.com/olets/zsh-abbr/archive/703ba651e4f9c0ae18402e2462177e6253585386.tar.gz",
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||||
},
|
},
|
||||||
|
"zsh-abbrev-alias": {
|
||||||
|
"branch": "master",
|
||||||
|
"description": "This zsh plugin provides functionality similar to Vim's abbreviation expansion.",
|
||||||
|
"homepage": "",
|
||||||
|
"owner": "momo-lab",
|
||||||
|
"repo": "zsh-abbrev-alias",
|
||||||
|
"rev": "ae2997ea7c1519861ff6712b84379b8d03de4f39",
|
||||||
|
"sha256": "1b5miqli5b5n893k0qd5lxb9w73md4sz1i8g9wzlhyqg4sasxvnx",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://github.com/momo-lab/zsh-abbrev-alias/archive/ae2997ea7c1519861ff6712b84379b8d03de4f39.tar.gz",
|
||||||
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||||
|
},
|
||||||
"zsh-autosuggestions": {
|
"zsh-autosuggestions": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"description": "Fish-like autosuggestions for zsh",
|
"description": "Fish-like autosuggestions for zsh",
|
||||||
|
|
Loading…
Reference in a new issue