prompt work
This commit is contained in:
parent
287a391c56
commit
03fcc056f0
3 changed files with 20 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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}},
|
||||
|
|
5
.zshrc
5
.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
|
||||
|
||||
|
|
Loading…
Reference in a new issue