chezmoi v2: omz + p10k + fzf + vi-mode zsh, tmux, per-account gitconfig (#612)
Rewrote the Aug-1 sandbox-era source into a full workstation setup for both ultix-streaming accounts: oh-my-zsh with autosuggestions/ syntax-highlighting/completions + powerlevel10k (pinned externals), fzf wiring, vi mode, tmux conf, aliases under ~/.config/zsh, gitconfig template that keeps hooksPath/tea for reachableceo only. Detail + verification: https://projects.knownelement.com/issues/612#note-3335
This commit is contained in:
@@ -0,0 +1,112 @@
|
||||
###################################
|
||||
# ~/.config/zsh/aliases.sh — chezmoi-managed
|
||||
###################################
|
||||
|
||||
###################################
|
||||
#Marp
|
||||
###################################
|
||||
# Convert slide deck into HTML
|
||||
alias marp-html='docker run --rm -v $PWD:/home/marp/app/ -e LANG=$LANG marpteam/marp-cli slide-deck.md'
|
||||
# Convert slide deck into PDF (using Chromium in Docker)
|
||||
alias marp-pdf='docker run --rm --init -v $PWD:/home/marp/app/ -e LANG=$LANG marpteam/marp-cli slide-deck.md --pdf'
|
||||
# Convert slide deck into PPTX (using Chromium in Docker)
|
||||
alias marp-pptx='docker run --rm --init -v $PWD:/home/marp/app/ -e LANG=$LANG marpteam/marp-cli slide-deck.md --pptx'
|
||||
# Watch mode
|
||||
alias marp-watch='docker run --rm --init -v $PWD:/home/marp/app/ -e LANG=$LANG -p 37717:37717 marpteam/marp-cli -w slide-deck.md'
|
||||
# Server mode (Serve current directory in http://localhost:8080/)
|
||||
alias marp-serve='docker run --rm --init -v $PWD:/home/marp/app -e LANG=$LANG -p 8080:8080 -p 37717:37717 marpteam/marp-cli -s .'
|
||||
###################################
|
||||
|
||||
alias cloudron='mise exec node@22 -- cloudron login'
|
||||
|
||||
###################################################
|
||||
# SSH shortcuts
|
||||
###################################################
|
||||
|
||||
#FNF hosts
|
||||
alias tsys-fnf-freedomstack='ssh charles@tsys-fnf-freedomstack' #FreedomStack dev vm
|
||||
alias hearth-at='ssh charles@hearth-at.thefnf.net'
|
||||
alias hearth-an='ssh charles@hearth-an.thefnf.net'
|
||||
alias hearth-bds='ssh charles@hearth-bds.thefnf.net'
|
||||
alias hearth-uds='ssh charles@hearth-uds.thefnf.net'
|
||||
|
||||
#####################################################
|
||||
#PFV HOSTS
|
||||
#####################################################
|
||||
#Bare metal systems (in band access) - Production
|
||||
#Upstairs, production
|
||||
alias ausprod-core-ap01='telnet ausprod-core-ap01.turnsys.net'
|
||||
alias ausprod-core-sw01='telnet ausprod-core-sw01.turnsys.net'
|
||||
|
||||
###########################################################
|
||||
# Project context aliases (StartProject.sh when present)
|
||||
###########################################################
|
||||
|
||||
alias context-docs-techops='StartProject.sh $HOME/code/techops/docs-techops'
|
||||
alias context-notes-public='StartProject.sh $HOME/notes-public'
|
||||
alias context-docs-subo='StartProject.sh $HOME/code/RD/docs-suborbital'
|
||||
alias context-docs-rr='StartProject.sh $HOME/code/RD/docs-rackrental'
|
||||
|
||||
alias context-dotfiles='StartProject.sh $HOME/projects/dotfiles'
|
||||
alias context-tsys-dev='StartProject.sh $HOME/code/techops/tsys-dev'
|
||||
|
||||
alias context-rd-MorseFlyer='StartProject.sh $HOME/RD/Morse/Internal/'
|
||||
|
||||
alias context-services-bizops='StartProject.sh $HOME/code/techops/ITBackOfficeFLOStack'
|
||||
|
||||
##############################################################
|
||||
#Docker / k8s aliases, cause i'm a docker/kubefarm fanboi now
|
||||
##############################################################
|
||||
|
||||
alias dc='docker-compose'
|
||||
alias dcu='docker compose up'
|
||||
alias dcd='docker compose down'
|
||||
alias dcdu='docker compose up -d'
|
||||
alias dcf='docker-compose rm -f ; docker-compose up'
|
||||
alias dcd-prod='docker-compose --context prod up -d'
|
||||
alias dcd-cicd='docker-compose --context cicd up -d'
|
||||
alias dcd-dev='docker-compose --context dev up -d'
|
||||
|
||||
alias kgn='kubectl get nodes -o wide|grep -v NAME|sort'
|
||||
alias kgp='kubectl get pods -A -o wide|grep -v NAME|sort'
|
||||
|
||||
alias k0-sb-gn='export KUBECONFIG=~/.kube/custom-contexts/context-sandbox-config.yml ; kgn'
|
||||
alias k0-sb-gp='export KUBECONFIG=~/.kube/custom-contexts/context-sandbox-config.yml ; kgp'
|
||||
|
||||
alias k0-dqu-gn='export KUBECONFIG=~/.kube/custom-contexts/context-dqu-config.yml ; kgn'
|
||||
alias k0-dqu-gp='export KUBECONFIG=~/.kube/custom-contexts/context-dqu-config.yml ; kgp'
|
||||
|
||||
alias k0-prod-gn='export KUBECONFIG=~/.kube/custom-contexts/context-prod-config.yml ; kgn'
|
||||
alias k0-prod-gp='export KUBECONFIG=~/.kube/custom-contexts/context-prod-config.yml ; kgp'
|
||||
|
||||
#############################################################
|
||||
# Command aliases...
|
||||
#############################################################
|
||||
|
||||
alias hb='habitctl'
|
||||
|
||||
alias s='ssh'
|
||||
|
||||
alias vi='vim'
|
||||
|
||||
alias id0='sudo -i'
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
alias cls='clear ; ls'
|
||||
|
||||
# eza comforts (ll/la/tree-ish) when present
|
||||
if command -v eza >/dev/null 2>&1; then
|
||||
alias ll='eza -l --git --group-directories-first'
|
||||
alias la='eza -la --git --group-directories-first'
|
||||
alias lt='eza --tree --level=2 --group-directories-first'
|
||||
fi
|
||||
|
||||
# ripgrep
|
||||
alias rgi='rg -i'
|
||||
|
||||
#Git / git stuff
|
||||
alias gup='git pull'
|
||||
alias lpom='git add -A :/ ; git commit -va'
|
||||
alias gpom='git push --tags origin master'
|
||||
alias tesla='gup;lpom;gpom'
|
||||
Reference in New Issue
Block a user