From 5dbadbf10943fb792b649b9c816b5032386f8214 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Fri, 2 Apr 2021 12:06:51 +0200 Subject: [PATCH] wip: wezterm experiments --- .config/starship.toml | 13 +++++++++++-- .config/wezterm/wezterm.lua | 3 ++- .local/share/applications/tmux-local.desktop | 3 ++- .zshrc | 9 +-------- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.config/starship.toml b/.config/starship.toml index a4723af..c009930 100644 --- a/.config/starship.toml +++ b/.config/starship.toml @@ -1,7 +1,9 @@ add_newline = false format = """\ +$hostname\ $directory\ +$git_branch\ $git_status\ $git_state\ $character\ @@ -18,10 +20,12 @@ disabled = true fish_style_pwd_dir_length = 1 truncation_length = 1 truncate_to_repo = false -style = "bold" +style = "italic bold" [git_branch] -style = "" +symbol = "" +truncation_length = 8 +truncation_symbol = "" [git_commit] style = "" @@ -32,6 +36,11 @@ style = "" [git_status] style = "" +[hostname] +ssh_only = false +format = "[$hostname](bold italic):" +disabled = false + [kubernetes] disabled = false style = "" diff --git a/.config/wezterm/wezterm.lua b/.config/wezterm/wezterm.lua index 61b1668..a88acfb 100644 --- a/.config/wezterm/wezterm.lua +++ b/.config/wezterm/wezterm.lua @@ -58,7 +58,8 @@ return { bottom = 0, }, - enable_tab_bar = false, + enable_tab_bar = true, + show_tab_index_in_tab_bar = false, enable_scroll_bar = false, window_decorations = "NONE", scrollback_lines = 5000, diff --git a/.local/share/applications/tmux-local.desktop b/.local/share/applications/tmux-local.desktop index 93799cf..d5e5d3d 100644 --- a/.local/share/applications/tmux-local.desktop +++ b/.local/share/applications/tmux-local.desktop @@ -7,4 +7,5 @@ TryExec=/usr/bin/wezterm Icon=org.wezfurlong.wezterm Terminal=false Categories=System;TerminalEmulator; -Exec=/usr/bin/wezterm start --class=tmux-local -- tmux new-session -A -D -s 0 +Exec=/usr/bin/wezterm start --class=tmux-local +# Exec=/usr/bin/wezterm connect local diff --git a/.zshrc b/.zshrc index b9cab72..031dde6 100644 --- a/.zshrc +++ b/.zshrc @@ -1,5 +1,4 @@ source ~/.zplug/init.zsh - # --set k8sServicePort=6443 \ zplug "plugins/git", from:oh-my-zsh zplug "zsh-users/zsh-completions" @@ -131,7 +130,7 @@ export NVIM_LISTEN_ADDRESS=/tmp/nvimsocket e () { nvr --remote $(readlink -f "$@") - echo -e "\x1b]2;$(date +%s):nvim\x1b\\" + echo -e "\x1b]2;1234567890123456$(date +%s):nvim\x1b\\" } ## fzf @@ -171,12 +170,6 @@ export ANSIBLE_NOCOWS=1 ## Prompt eval "$(starship init zsh)" -function _precmd(){ - tmux set -w @starship "$(env STARSHIP_CONFIG=$HOME/.config/starship-tmux.toml starship prompt -s ${STATUS:-0} -j ${NUM_JOBS:-0} -d ${STARSHIP_DURATION:-0})" -} -starship_precmd_user_func="_precmd" -precmd_functions+=(_precmd) - export PATH=$HOME/bin:$PATH autoload -U +X bashcompinit && bashcompinit