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
|
add_newline = false
|
||||||
|
|
||||||
format = """\
|
format = """\
|
||||||
|
$hostname\
|
||||||
$directory\
|
$directory\
|
||||||
|
$git_branch\
|
||||||
$git_status\
|
$git_status\
|
||||||
$git_state\
|
$git_state\
|
||||||
$character\
|
$character\
|
||||||
|
@ -18,10 +20,12 @@ disabled = true
|
||||||
fish_style_pwd_dir_length = 1
|
fish_style_pwd_dir_length = 1
|
||||||
truncation_length = 1
|
truncation_length = 1
|
||||||
truncate_to_repo = false
|
truncate_to_repo = false
|
||||||
style = "bold"
|
style = "italic bold"
|
||||||
|
|
||||||
[git_branch]
|
[git_branch]
|
||||||
style = ""
|
symbol = ""
|
||||||
|
truncation_length = 8
|
||||||
|
truncation_symbol = ""
|
||||||
|
|
||||||
[git_commit]
|
[git_commit]
|
||||||
style = ""
|
style = ""
|
||||||
|
@ -32,6 +36,11 @@ style = ""
|
||||||
[git_status]
|
[git_status]
|
||||||
style = ""
|
style = ""
|
||||||
|
|
||||||
|
[hostname]
|
||||||
|
ssh_only = false
|
||||||
|
format = "[$hostname](bold italic):"
|
||||||
|
disabled = false
|
||||||
|
|
||||||
[kubernetes]
|
[kubernetes]
|
||||||
disabled = false
|
disabled = false
|
||||||
style = ""
|
style = ""
|
||||||
|
|
|
@ -58,7 +58,8 @@ return {
|
||||||
bottom = 0,
|
bottom = 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
enable_tab_bar = false,
|
enable_tab_bar = true,
|
||||||
|
show_tab_index_in_tab_bar = false,
|
||||||
enable_scroll_bar = false,
|
enable_scroll_bar = false,
|
||||||
window_decorations = "NONE",
|
window_decorations = "NONE",
|
||||||
scrollback_lines = 5000,
|
scrollback_lines = 5000,
|
||||||
|
|
|
@ -7,4 +7,5 @@ TryExec=/usr/bin/wezterm
|
||||||
Icon=org.wezfurlong.wezterm
|
Icon=org.wezfurlong.wezterm
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Categories=System;TerminalEmulator;
|
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
|
source ~/.zplug/init.zsh
|
||||||
# --set k8sServicePort=6443 \
|
|
||||||
|
|
||||||
zplug "plugins/git", from:oh-my-zsh
|
zplug "plugins/git", from:oh-my-zsh
|
||||||
zplug "zsh-users/zsh-completions"
|
zplug "zsh-users/zsh-completions"
|
||||||
|
@ -131,7 +130,7 @@ export NVIM_LISTEN_ADDRESS=/tmp/nvimsocket
|
||||||
e ()
|
e ()
|
||||||
{
|
{
|
||||||
nvr --remote $(readlink -f "$@")
|
nvr --remote $(readlink -f "$@")
|
||||||
echo -e "\x1b]2;$(date +%s):nvim\x1b\\"
|
echo -e "\x1b]2;1234567890123456$(date +%s):nvim\x1b\\"
|
||||||
}
|
}
|
||||||
|
|
||||||
## fzf
|
## fzf
|
||||||
|
@ -171,12 +170,6 @@ export ANSIBLE_NOCOWS=1
|
||||||
## Prompt
|
## Prompt
|
||||||
eval "$(starship init zsh)"
|
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
|
export PATH=$HOME/bin:$PATH
|
||||||
|
|
||||||
autoload -U +X bashcompinit && bashcompinit
|
autoload -U +X bashcompinit && bashcompinit
|
||||||
|
|
Loading…
Reference in a new issue