chore(zsh): add python

Signed-off-by: d0zingcat <iamtangli42@gmail.com>
This commit is contained in:
2025-07-15 15:06:52 +08:00
parent 09ca54972e
commit 53870521e1
2 changed files with 23 additions and 1 deletions

4
.zshrc
View File

@@ -64,7 +64,7 @@ function m() {
if [[ -n "$TMUX" ]]; then
exit 0
fi
tmux ls -F '#{session_name}' | fzf --bind=enter:replace-query+print-query |xargs echo | read session && tmux attach -t ${session:-default} || tmux new -s ${session:-default}
tmux ls -F '#{session_name}' | fzf --bind=enter:replace-query+print-query | xargs echo | read session && tmux attach -t ${session:-default} || tmux new -s ${session:-default}
}
# find network ports
@@ -240,6 +240,8 @@ alias tf_pull_state='rsync -avhti devops-cloud-1:~/meex-deploy/terraform/terrafo
alias git_branch="git for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'"
alias clean_tmux_session='ls ~/.tmux/resurrect/* -1dtr | head -n 100 | xargs rm -v'
alias pn='pnpm'
alias python='python3'
alias pip='pip3'
[[ $commands[kubectl] ]] && source <(kubectl completion zsh) && compdef __start_kubectl k
[[ $commands[helm] ]] && source <(helm completion zsh)

20
ghostty/config Normal file
View File

@@ -0,0 +1,20 @@
foreground = "#c0caf5"
background = "#24283b"
cursor_bg = "#c0caf5"
cursor_border = "#c0caf5"
cursor_fg = "#24283b"
selection_bg = "#364A82"
selection_fg = "#c0caf5"
# Normal colors
black = "#15161e"
red = "#f7768e"
green = "#9ece6a"
yellow = "#e0af68"
blue = "#7aa2f7"
magenta = "#bb9af7"
cyan = "#7dcfff"
white = "#a9b1d6"
font-family = "JetBrainsMono Nerd Font Mono"