diff --git a/.dotter/global.toml b/.dotter/global.toml index 0920439..86800d3 100644 --- a/.dotter/global.toml +++ b/.dotter/global.toml @@ -14,7 +14,8 @@ nerd_font = "JetBrainsMono" [cli.files] "config/bat" = "~/.config/bat" -"config/kitty" = {target = "~/.config/kitty", type = "symbolic" } +"config/ghostty" = "~/.config/ghostty" +"config/kitty" = { target = "~/.config/kitty", type = "symbolic" } "config/sesh" = "~/.config/sesh" "config/tmux" = "~/.config/tmux" "config/yazi" = "~/.config/yazi" @@ -25,14 +26,14 @@ depends = ["rust"] [dev.files] "config/git" = "~/.config/git" -"config/lazygit" = { target = "~/.config/lazygit", type = "symbolic"} +"config/lazygit" = { target = "~/.config/lazygit", type = "symbolic" } "config/zed" = "~/.config/zed" [zsh.files] "config/zsh/zshrc" = "~/.zshrc" "config/zsh/zprofile" = "~/.zprofile" -"config/zsh/aliases" = {target = "~/.config/zsh/aliases", type="symbolic"} -"config/zsh/completions" = {target = "~/.config/zsh/completions", type = "symbolic"} +"config/zsh/aliases" = { target = "~/.config/zsh/aliases", type = "symbolic" } +"config/zsh/completions" = { target = "~/.config/zsh/completions", type = "symbolic" } "config/zsh/functions" = "~/.config/zsh/functions" [fzf.files] diff --git a/config/ghostty/config b/config/ghostty/config new file mode 100644 index 0000000..4d1ff59 --- /dev/null +++ b/config/ghostty/config @@ -0,0 +1,92 @@ +theme = catppuccin-macchiato + +# Common + +keybind = ctrl+space>o=write_selection_file:open +keybind = ctrl+space>shift+o=write_selection_file:paste + +keybind = ctrl+space>alt+o=write_scrollback_file:open +keybind = ctrl+space>alt+shift+o=write_scrollback_file:paste + +keybind = ctrl+comma=open_config +keybind = ctrl+space>shift+r=reload_config + +keybind = ctrl+shift+c=copy_to_clipboard +keybind = ctrl+shift+i=inspector:toggle +keybind = ctrl+shift+v=paste_from_clipboard +keybind = shift+insert=paste_from_selection + +# Navigation +keybind = alt+f4=close_window +keybind = ctrl+shift+w=close_surface +keybind = ctrl+space>shift+t=close_surface +keybind = ctrl+shift+n=new_window +keybind = ctrl+shift+q=quit + +keybind = ctrl+space>shift+f=toggle_fullscreen + +keybind = ctrl+alt+j=jump_to_prompt:1 +keybind = ctrl+alt+k=jump_to_prompt:-1 + +keybind = ctrl+shift+a=select_all +keybind = shift+right=adjust_selection:right +keybind = shift+down=adjust_selection:down +keybind = shift+up=adjust_selection:up +keybind = shift+left=adjust_selection:left + +keybind = shift+end=scroll_to_bottom +keybind = shift+home=scroll_to_top +keybind = shift+page_up=scroll_page_up +keybind = shift+page_down=scroll_page_down + +# Config +keybind = ctrl+equal=increase_font_size:1 +keybind = ctrl+minus=decrease_font_size:1 +keybind = ctrl+plus=increase_font_size:1 +keybind = ctrl+zero=reset_font_size + +# Splits +keybind = ctrl+space>s=new_split:right +keybind = ctrl+space>v=new_split:down + +keybind = ctrl+space>h=goto_split:left +keybind = ctrl+space>j=goto_split:bottom +keybind = ctrl+space>k=goto_split:top +keybind = ctrl+space>l=goto_split:right + +keybind = ctrl+space>left=goto_split:left +keybind = ctrl+space>down=goto_split:bottom +keybind = ctrl+space>up=goto_split:top +keybind = ctrl+space>right=goto_split:right + +keybind = ctrl+space>m=toggle_split_zoom + +keybind = super+ctrl+left_bracket=goto_split:previous +keybind = super+ctrl+right_bracket=goto_split:next + +keybind = super+ctrl+shift+right=resize_split:right,10 +keybind = super+ctrl+shift+down=resize_split:down,10 +keybind = super+ctrl+shift+up=resize_split:up,10 +keybind = super+ctrl+shift+left=resize_split:left,10 +keybind = ctrl+space>ctrl+zero=equalize_splits + +# Tabs +keybind = ctrl+space>one=goto_tab:1 +keybind = ctrl+space>two=goto_tab:2 +keybind = ctrl+space>three=goto_tab:3 +keybind = ctrl+space>four=goto_tab:4 +keybind = ctrl+space>five=goto_tab:5 +keybind = ctrl+space>six=goto_tab:6 +keybind = ctrl+space>seven=goto_tab:7 +keybind = ctrl+space>eight=goto_tab:8 +keybind = ctrl+space>nine=last_tab + +keybind = ctrl+page_up=previous_tab +keybind = ctrl+page_down=next_tab +keybind = ctrl+shift+left=previous_tab +keybind = ctrl+shift+right=next_tab +keybind = ctrl+space>shift+tab=previous_tab +keybind = ctrl+space>tab=next_tab + +keybind = ctrl+space>t=new_tab + diff --git a/config/zsh/zprofile b/config/zsh/zprofile index 2990987..e57de87 100644 --- a/config/zsh/zprofile +++ b/config/zsh/zprofile @@ -37,8 +37,12 @@ update_path "$PNPM_HOME" {{ /if }} {{ #if (command_success "[ -d $HOME/.bun ]") }} - export BUN_INSTALL="$HOME/.bun" - update_path "$BUN_INSTALL/bin" +export BUN_INSTALL="$HOME/.bun" +update_path "$BUN_INSTALL/bin" + +# bun completions +[ -s "/home/aleidk/.bun/_bun" ] && source "/home/aleidk/.bun/_bun" + {{ /if }} {{ #if (is_executable "rye") }} @@ -50,6 +54,10 @@ source "$HOME/.rye/env" update_path "$HOME/.cargo/bin/" {{ /if }} +{{ #if (is_executable "tofu") }} +complete -o nospace -C /usr/bin/tofu tofu +{{ /if }} + {{~ #if (eq (env_var "OS") "macos") }} eval "$(/opt/homebrew/bin/brew shellenv)" {{ /if ~}}