wip: wezterm experiments
This commit is contained in:
parent
8a9f86c1db
commit
5dbadbf109
4 changed files with 16 additions and 12 deletions
|
@ -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 = ""
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
9
.zshrc
9
.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
|
||||
|
|
Loading…
Reference in a new issue