Add ^-b ^-f navigation to wezterm, some more nix binaries, and a better theme for helix

main
Andrew Coleman 2023-07-25 09:30:54 -04:00
parent 3458443392
commit 21d150f665
1 changed files with 21 additions and 4 deletions

View File

@ -66,6 +66,8 @@ has_bin "kubie" || nix profile install nixpkgs#kubie
has_bin "llama" || nix profile install nixpkgs#llama
has_bin "mdbook" || nix profile install nixpkgs#mdbook
has_bin "mosh" || nix profile install nixpkgs#mosh
has_bin "nix-bisect" || nix profile install nixpkgs#nix-bisect
has_bin "nix-doc" || nix profile install nixpkgs#nix-doc
has_bin "nix-init" || nix profile install nixpkgs#nix-init
has_bin "nix-search" || nix profile install github:peterldowns/nix-search-cli --refresh
has_bin "nurl" || nix profile install nixpkgs#nurl
@ -80,6 +82,8 @@ has_bin "sd" || nix profile install nixpkgs#sd
has_bin "shellcheck" || nix profile install nixpkgs#shellcheck
has_bin "shfmt" || nix profile install nixpkgs#shfmt
has_bin "starship" || nix profile install nixpkgs#starship
has_bin "terminal-notifier" || nix profile install nixpkgs#terminal-notifier
has_bin "tig" || nix profile install nixpkgs#tig
has_bin "tldr" || nix profile install nixpkgs#tealdeer
has_bin "tokei" || nix profile install nixpkgs#tokei
has_bin "upterm" || nix profile install nixpkgs#upterm
@ -128,6 +132,12 @@ config.mouse_bindings = {
action = wezterm.action.OpenLinkAtMouseCursor,
},
}
config.keys = {
-- Make Ctrl-b equivalent to Alt-b which many line editors interpret as backward-word
{key="b", mods="CTRL", action=wezterm.action{SendString="\x1bb"}},
-- Make Ctrl-f equivalent to Alt-f which many line editors interpret as forward-word
{key="f", mods="CTRL", action=wezterm.action{SendString="\x1bf"}},
}
return config
EOF
@ -137,9 +147,9 @@ cat <<EOF > "$HOME/.config/starship.toml"
disabled=true
EOF
mkdir -p "$HOME/.config/helix"
mkdir -p "$HOME/.config/helix/themes"
cat <<EOF > "$HOME/.config/helix/config.toml"
theme = "onelight"
theme = "mylight"
[editor]
true-color = true
@ -164,8 +174,15 @@ tab = "all"
[keys.normal]
"$" = "goto_line_end"
"^" = "goto_line_start"
"F2" = "goto_previous_buffer"
"F3" = "goto_next_buffer"
EOF
cat <<EOF > "$HOME/.config/helix/themes/mylight.toml"
inherits = "onelight"
"comment" = { fg = "grey" }
"comment.line" = { fg = "grey" }
"comment.block" = { fg = "grey" }
"comment.block.documentation" = { fg = "grey" }
EOF
cat <<EOF > "$HOME/.gitconfig"