From 03fcc056f0d688f516a828d11d20a87336dcae45 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Fri, 2 Apr 2021 14:47:31 +0200 Subject: [PATCH] prompt work --- .config/starship.toml | 9 ++++++--- .config/wezterm/wezterm.lua | 11 +++++++++-- .zshrc | 5 +++++ 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.config/starship.toml b/.config/starship.toml index c009930..3ac7c73 100644 --- a/.config/starship.toml +++ b/.config/starship.toml @@ -6,7 +6,7 @@ $directory\ $git_branch\ $git_status\ $git_state\ -$character\ +( $character)\ """ [character] @@ -23,7 +23,9 @@ truncate_to_repo = false style = "italic bold" [git_branch] -symbol = "" +format = "[$symbol$branch]($style)" +style = "fg:#559955" +symbol = " " truncation_length = 8 truncation_symbol = "" @@ -34,7 +36,8 @@ style = "" style = "" [git_status] -style = "" +format = '([\[$all_status$ahead_behind\]]($style))' +style = "dimmed" [hostname] ssh_only = false diff --git a/.config/wezterm/wezterm.lua b/.config/wezterm/wezterm.lua index a88acfb..e8e1e3f 100644 --- a/.config/wezterm/wezterm.lua +++ b/.config/wezterm/wezterm.lua @@ -15,7 +15,7 @@ wezterm.on("update-right-status", function(window, pane) end); function font_with_fallback(name, params) - local names = {name, "Noto Color Emoji"} + local names = {name, "Noto Color Emoji", "Iosevka Nerd Font Mono"} return wezterm.font_with_fallback(names, params) end @@ -67,8 +67,14 @@ return { check_for_updates = false, status_update_interval = 100, - leader = { key="o", mods="CTRL", timeout_milliseconds=1000 }, + launch_menu = { + { + label = "dln-dev", + args = {"ssh", "dln-dev"}, + }, + }, + leader = { key="o", mods="CTRL", timeout_milliseconds=1000 }, keys = { {key="c", mods="ALT|SHIFT", action="Copy"}, @@ -76,6 +82,7 @@ return { {key="n", mods="LEADER", action=wezterm.action{SpawnTab="CurrentPaneDomain"}}, {key="c", mods="LEADER", action=wezterm.action{SpawnTab="CurrentPaneDomain"}}, {key="k", mods="LEADER", action=wezterm.action{CloseCurrentTab={confirm=true}}}, + {key="l", mods="LEADER", action="ShowLauncher"}, {key="LeftArrow", mods="CTRL", action=wezterm.action{ActivateTabRelative=-1}}, {key="RightArrow", mods="CTRL", action=wezterm.action{ActivateTabRelative=1}}, diff --git a/.zshrc b/.zshrc index 031dde6..22b3ee2 100644 --- a/.zshrc +++ b/.zshrc @@ -169,6 +169,11 @@ export ANSIBLE_NOCOWS=1 ## Prompt eval "$(starship init zsh)" +# function set_win_title(){ +# echo -ne "\033]0; $(basename $PWD) \007" +# } +# precmd_functions+=(set_win_title) + export PATH=$HOME/bin:$PATH