Update TODO.md, .local/share/chezmoi/software.yml, .zshrc, .local/share/chezmoi/home/dot_tool-versions, .tool-versions, .bashrc, .Xresources, .local/share/chezmoi/home/private_dot_config/plasma/plasmoids.yml
Deleted vim-plugins.txt, .zshrc.sh, .gitattributes, .env, .local/share/chezmoi/software.json, .local/share/chezmoi/home/private_dot_config/environments/desktop, .local/share/chezmoi/home/private_dot_config/environments/development, .local/share/chezmoi/home/private_dot_config/environments/terminal
This commit is contained in:
parent
7d2b8ba6d2
commit
960267a735
16 changed files with 4853 additions and 4888 deletions
38
.Xresources
Normal file
38
.Xresources
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
|
||||||
|
! general
|
||||||
|
*background: rgb:16/19/25
|
||||||
|
*foreground: rgb:aa/ae/b8
|
||||||
|
|
||||||
|
! blacks
|
||||||
|
*color0: rgb:47/4b/56
|
||||||
|
*color8: rgb:60/64/6f
|
||||||
|
|
||||||
|
! reds
|
||||||
|
*color1: rgb:ed/25/4e
|
||||||
|
*color9: rgb:e5/45/68
|
||||||
|
|
||||||
|
! greens
|
||||||
|
*color2: rgb:71/f7/9f
|
||||||
|
*color10: rgb:81/ed/a9
|
||||||
|
|
||||||
|
! yellows
|
||||||
|
*color3: rgb:f9/dc/5c
|
||||||
|
*color11: rgb:ee/d8/73
|
||||||
|
|
||||||
|
! blues
|
||||||
|
*color4: rgb:7c/b7/ff
|
||||||
|
*color12: rgb:8a/ba/f6
|
||||||
|
|
||||||
|
! magentas
|
||||||
|
*color5: rgb:c7/4d/89
|
||||||
|
*color13: rgb:c6/65/97
|
||||||
|
|
||||||
|
! cyans
|
||||||
|
*color6: rgb:0/c1/e4
|
||||||
|
*color14: rgb:27/c2/e0
|
||||||
|
|
||||||
|
! whites
|
||||||
|
*color7: rgb:aa/ae/b8
|
||||||
|
*color15: rgb:c3/c7/d1
|
||||||
|
|
||||||
|
xterm*faceName: Hack Nerd Font
|
97
.bashrc
Normal file
97
.bashrc
Normal file
|
@ -0,0 +1,97 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# shellcheck disable=SC1090,SC1091
|
||||||
|
|
||||||
|
# Prefer US English
|
||||||
|
export LANG="en_US"
|
||||||
|
|
||||||
|
# Detect support for advanced terminal features
|
||||||
|
if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then
|
||||||
|
export BASH_SUPPORT=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Fig / LC_ALL
|
||||||
|
if [ "$BASH_SUPPORT" = 'true' ]; then
|
||||||
|
if [[ "$(hostname)" != *'-minimal' ]]; then
|
||||||
|
export LC_ALL="en_US.UTF-8"
|
||||||
|
fi
|
||||||
|
if [ -f "$HOME/.fig/shell/bashrc.pre.bash" ]; then
|
||||||
|
. "$HOME/.fig/shell/bashrc.pre.bash"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Import Common Settings
|
||||||
|
if [ -f "$HOME/.config/shell/profile" ]; then
|
||||||
|
. "$HOME/.config/shell/profile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Settings
|
||||||
|
if command -v shopt > /dev/null; then
|
||||||
|
shopt -s globstar
|
||||||
|
shopt -s histappend
|
||||||
|
shopt -s checkwinsize
|
||||||
|
fi
|
||||||
|
|
||||||
|
### History
|
||||||
|
export HISTFILE="$XDG_STATE_HOME/bash/history"
|
||||||
|
|
||||||
|
### /etc/bashrc
|
||||||
|
if [ -f /etc/bashrc ]; then
|
||||||
|
. /etc/bashrc
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Prompt (on bash only)
|
||||||
|
if [ "$BASH_SUPPORT" = 'true' ]; then
|
||||||
|
if [[ "$(hostname)" != *'-minimal' ]]; then
|
||||||
|
### Styled Terminal
|
||||||
|
if command -v oh-my-posh > /dev/null; then
|
||||||
|
# Oh My Posh (See: https://ohmyposh.dev/)
|
||||||
|
eval "$(oh-my-posh init bash --config "$XDG_CONFIG_HOME/oh-my-posh/Betelgeuse.omp.json")"
|
||||||
|
else
|
||||||
|
# Basic styled terminal
|
||||||
|
case "$TERM" in
|
||||||
|
xterm* | rxvt* | Eterm | aterm | kterm | gnome* | alacritty)
|
||||||
|
PS1="\n \[\033[0;34m\]╭─\[\033[0;31m\]\[\033[0;37m\]\[\033[41m\] $OS_ICON \u \[\033[0m\]\[\033[0;31m\]\[\033[44m\]\[\033[0;34m\]\[\033[44m\]\[\033[0;30m\]\[\033[44m\] \w \[\033[0m\]\[\033[0;34m\] \n \[\033[0;34m\]╰ \[\033[1;36m\]\$ \[\033[0m\]"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# Minimal session
|
||||||
|
if command -v oh-my-posh > /dev/null; then
|
||||||
|
eval "$(oh-my-posh init bash --config "$XDG_CONFIG_HOME/oh-my-posh/Betelgeuse-minimal.omp.json")"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Bash Initialization Hooks
|
||||||
|
if [ "$BASH_SUPPORT" = 'true' ]; then
|
||||||
|
### Bash Completion
|
||||||
|
if [ -f "/usr/local/etc/profile.d/bash_completion.sh" ]; then
|
||||||
|
. "/usr/local/etc/profile.d/bash_completion.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
### direnv
|
||||||
|
if command -v direnv > /dev/null; then
|
||||||
|
eval "$(direnv hook bash)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Java (asdf)
|
||||||
|
if [ -f "$ASDF_DATA_DIR/plugins/java/set-java-home.bash" ]; then
|
||||||
|
. "$ASDF_DATA_DIR/plugins/java/set-java-home.bash"
|
||||||
|
fi
|
||||||
|
|
||||||
|
### zoxide
|
||||||
|
if command -v zoxide > /dev/null; then
|
||||||
|
eval "$(zoxide init --cmd cd bash)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Fig
|
||||||
|
if [ -f "$HOME/.fig/shell/bashrc.post.bash" ]; then
|
||||||
|
. "$HOME/.fig/shell/bashrc.post.bash"
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Vault
|
||||||
|
if command -v vault > /dev/null; then
|
||||||
|
complete -C vault vault
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
4
.gitattributes
vendored
4
.gitattributes
vendored
|
@ -1,4 +0,0 @@
|
||||||
*.gif diff=image
|
|
||||||
*.jpg diff=image
|
|
||||||
*.png diff=image
|
|
||||||
*.svg diff=image
|
|
|
@ -1,4 +0,0 @@
|
||||||
cointop
|
|
||||||
google-assistant
|
|
||||||
translate-shell
|
|
||||||
qlplugins
|
|
|
@ -1,76 +0,0 @@
|
||||||
act
|
|
||||||
altair
|
|
||||||
android-studio
|
|
||||||
appium
|
|
||||||
aquasecurity/trivy/trivy
|
|
||||||
awscli
|
|
||||||
azure-cli
|
|
||||||
balenaetcher
|
|
||||||
bitwarden
|
|
||||||
bun
|
|
||||||
codeclimate
|
|
||||||
consul-template
|
|
||||||
dive
|
|
||||||
docker
|
|
||||||
docker-slim
|
|
||||||
exiftool
|
|
||||||
ffmpeg
|
|
||||||
firefox
|
|
||||||
gh
|
|
||||||
gimp
|
|
||||||
git-filter-repo
|
|
||||||
git-subrepo
|
|
||||||
gitlab-runner
|
|
||||||
gitleaks
|
|
||||||
glab
|
|
||||||
go
|
|
||||||
goodwithtech/r/dockle
|
|
||||||
goofys
|
|
||||||
google-chrome
|
|
||||||
google-cloud-sdk
|
|
||||||
gradle
|
|
||||||
hashicorp/tap/waypoint
|
|
||||||
helm
|
|
||||||
htmlq
|
|
||||||
hudochenkov/sshpass/sshpass
|
|
||||||
java
|
|
||||||
juju
|
|
||||||
kubectx
|
|
||||||
kubernetes-cli
|
|
||||||
lens
|
|
||||||
librsvg
|
|
||||||
macfuse
|
|
||||||
microsoft-teams
|
|
||||||
minio/stable/mc
|
|
||||||
mitmproxy
|
|
||||||
nomad
|
|
||||||
oq
|
|
||||||
packer
|
|
||||||
pandoc
|
|
||||||
parallels
|
|
||||||
pgcli
|
|
||||||
poetry
|
|
||||||
postman
|
|
||||||
python
|
|
||||||
ruby
|
|
||||||
scrcpy
|
|
||||||
sdkman
|
|
||||||
shc
|
|
||||||
skype
|
|
||||||
slack
|
|
||||||
teamviewer
|
|
||||||
teleport
|
|
||||||
terraform
|
|
||||||
tfenv
|
|
||||||
tokei
|
|
||||||
upx
|
|
||||||
vagrant
|
|
||||||
virtualbox
|
|
||||||
vscode
|
|
||||||
vmware
|
|
||||||
watchman
|
|
||||||
wireshark
|
|
||||||
wireshark
|
|
||||||
wkhtmltopdf
|
|
||||||
yank
|
|
||||||
yarn
|
|
|
@ -1,99 +0,0 @@
|
||||||
aria2
|
|
||||||
asdf
|
|
||||||
automake
|
|
||||||
autorestic
|
|
||||||
bandwhich
|
|
||||||
bat
|
|
||||||
bitwarden-cli
|
|
||||||
cheat
|
|
||||||
chezmoi
|
|
||||||
choose
|
|
||||||
cloudflared
|
|
||||||
cmake
|
|
||||||
coreutils
|
|
||||||
croc
|
|
||||||
ctop
|
|
||||||
curl
|
|
||||||
curlie
|
|
||||||
dasel
|
|
||||||
deno
|
|
||||||
difftastic
|
|
||||||
direnv
|
|
||||||
duf
|
|
||||||
dust
|
|
||||||
etcd
|
|
||||||
exa
|
|
||||||
fd
|
|
||||||
ffsend
|
|
||||||
fq
|
|
||||||
fselect
|
|
||||||
fx
|
|
||||||
fzf
|
|
||||||
gist
|
|
||||||
git
|
|
||||||
git-delta
|
|
||||||
git-lfs
|
|
||||||
git-secret
|
|
||||||
gitui
|
|
||||||
glances
|
|
||||||
glow
|
|
||||||
go-task/tap/go-task
|
|
||||||
gomplate
|
|
||||||
googler
|
|
||||||
gping
|
|
||||||
grex
|
|
||||||
gron
|
|
||||||
gum
|
|
||||||
hexyl
|
|
||||||
hey
|
|
||||||
htop
|
|
||||||
hyperfine
|
|
||||||
imagemagick
|
|
||||||
jo
|
|
||||||
jq
|
|
||||||
jq
|
|
||||||
litecli
|
|
||||||
m-cli
|
|
||||||
mcfly
|
|
||||||
mkcert
|
|
||||||
mycli
|
|
||||||
nb
|
|
||||||
nmap
|
|
||||||
nnn
|
|
||||||
node
|
|
||||||
openssh
|
|
||||||
ots
|
|
||||||
pass
|
|
||||||
peco
|
|
||||||
pnpm
|
|
||||||
procs
|
|
||||||
pup
|
|
||||||
pywhat
|
|
||||||
rclone
|
|
||||||
restic
|
|
||||||
ripgrep
|
|
||||||
ripgrep-all
|
|
||||||
rm-improved
|
|
||||||
rsync
|
|
||||||
sd
|
|
||||||
shellcheck
|
|
||||||
sops
|
|
||||||
sqlite
|
|
||||||
ssh-vault
|
|
||||||
sysbench
|
|
||||||
t-rec
|
|
||||||
teller
|
|
||||||
tmux
|
|
||||||
tree
|
|
||||||
up
|
|
||||||
vault
|
|
||||||
vim
|
|
||||||
volta
|
|
||||||
watchexec
|
|
||||||
wget
|
|
||||||
whalebrew
|
|
||||||
yj
|
|
||||||
yq
|
|
||||||
zoxide
|
|
||||||
zsh
|
|
||||||
zx
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
10
.tool-versions
Normal file
10
.tool-versions
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
golang system
|
||||||
|
java openjdk-17
|
||||||
|
deno system
|
||||||
|
nodejs system
|
||||||
|
php 8.1.12
|
||||||
|
poetry system
|
||||||
|
python system
|
||||||
|
ruby 3.1.1
|
||||||
|
rust system
|
||||||
|
|
355
.zshrc
Normal file
355
.zshrc
Normal file
|
@ -0,0 +1,355 @@
|
||||||
|
# shellcheck disable=SC1090,SC1091,SC2034,SC2154,SC2296
|
||||||
|
|
||||||
|
### Language / Fonts
|
||||||
|
export LANG="en_US"
|
||||||
|
export LC_ALL="en_US.UTF-8"
|
||||||
|
|
||||||
|
### Advanced Bash-features are supported
|
||||||
|
export BASH_SUPPORT=true
|
||||||
|
|
||||||
|
### Import Common Settings
|
||||||
|
export XDG_CONFIG_HOME="$HOME/.config"
|
||||||
|
if [ -f "$HOME/.config/shell/profile" ]; then
|
||||||
|
. "$XDG_CONFIG_HOME/shell/profile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Misc.
|
||||||
|
export HISTFILE="$XDG_STATE_HOME/zsh/history"
|
||||||
|
export ZLE_RPROMPT_INDENT=0
|
||||||
|
export WORDCHARS=${WORDCHARS//\/}
|
||||||
|
export PROMPT_EOL_MARK=
|
||||||
|
export TIMEFMT=$'\nreal\t%E\nuser\t%U\nsys\t%S\ncpu\t%P'
|
||||||
|
|
||||||
|
### Antigen
|
||||||
|
export ADOTDIR="$HOME/.local/antigen"
|
||||||
|
|
||||||
|
### Powerline
|
||||||
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Fig
|
||||||
|
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && . "$HOME/.fig/shell/zshrc.pre.zsh"
|
||||||
|
|
||||||
|
# --------------------------------- SETTINGS ----------------------------------
|
||||||
|
setopt AUTO_CD
|
||||||
|
setopt BEEP
|
||||||
|
setopt CORRECT
|
||||||
|
setopt HIST_BEEP
|
||||||
|
setopt HIST_EXPIRE_DUPS_FIRST
|
||||||
|
setopt HIST_FIND_NO_DUPS
|
||||||
|
setopt HIST_IGNORE_ALL_DUPS
|
||||||
|
setopt HIST_IGNORE_DUPS
|
||||||
|
setopt HIST_REDUCE_BLANKS
|
||||||
|
setopt HIST_SAVE_NO_DUPS
|
||||||
|
setopt HIST_VERIFY
|
||||||
|
setopt INC_APPEND_HISTORY
|
||||||
|
setopt INTERACTIVE_COMMENTS
|
||||||
|
setopt MAGIC_EQUAL_SUBST
|
||||||
|
setopt NO_NO_MATCH
|
||||||
|
setopt NOTIFY
|
||||||
|
setopt NUMERIC_GLOB_SORT
|
||||||
|
setopt PROMPT_SUBST
|
||||||
|
setopt SHARE_HISTORY
|
||||||
|
|
||||||
|
# ZSH completion system
|
||||||
|
autoload -Uz compinit
|
||||||
|
compinit -d "$XDG_CACHE_HOME/zsh/zcompdump-$ZSH_VERSION"
|
||||||
|
zstyle ':completion:*:*:*:*:*' menu select
|
||||||
|
zstyle ':completion:*' cache-path "$XDG_CACHE_HOME/zsh/zcompcache"
|
||||||
|
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
|
||||||
|
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
||||||
|
zstyle ':completion:*' auto-description 'specify: %d'
|
||||||
|
zstyle ':completion:*' completer _expand _complete
|
||||||
|
zstyle ':completion:*' format 'Completing %d'
|
||||||
|
zstyle ':completion:*' group-name ''
|
||||||
|
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
|
||||||
|
zstyle ':completion:*' rehash true
|
||||||
|
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
|
||||||
|
zstyle ':completion:*' use-compctl false
|
||||||
|
zstyle ':completion:*' verbose true
|
||||||
|
# shellcheck disable=SC2016
|
||||||
|
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
|
||||||
|
|
||||||
|
# Key bindings
|
||||||
|
bindkey -e
|
||||||
|
bindkey '^U' backward-kill-line
|
||||||
|
bindkey '^[[2~' overwrite-mode
|
||||||
|
bindkey '^[[3~' delete-char
|
||||||
|
bindkey '^[[H' beginning-of-line
|
||||||
|
bindkey '^[[1~' beginning-of-line
|
||||||
|
bindkey '^[[F' end-of-line
|
||||||
|
bindkey '^[[4~' end-of-line
|
||||||
|
bindkey '^[[1;5C' forward-word
|
||||||
|
bindkey '^[[1;5D' backward-word
|
||||||
|
bindkey '^[[3;5~' kill-word
|
||||||
|
bindkey '^[[5~' beginning-of-buffer-or-history
|
||||||
|
bindkey '^[[6~' end-of-buffer-or-history
|
||||||
|
bindkey '^[[Z' undo
|
||||||
|
bindkey ' ' magic-space
|
||||||
|
|
||||||
|
# ------------------------------- ZSH PLUGINS ---------------------------------
|
||||||
|
# Plugin source helper
|
||||||
|
_source_plugin() {
|
||||||
|
local plugin_name="$1"
|
||||||
|
for basedir in "$HOME/.local/antigen/bundles/zsh-users"; do
|
||||||
|
plugin="$basedir/$plugin_name/$plugin_name.zsh"
|
||||||
|
[ -f "$plugin" ] && source "$plugin" && return 0
|
||||||
|
done
|
||||||
|
echo "\033[33m[ ! ]\033[0m ZSH ${plugin_name#zsh-} not installed"
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
# ZSH Autosuggestions
|
||||||
|
_source_plugin zsh-autosuggestions && ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=#999'
|
||||||
|
|
||||||
|
# ZSH Syntax Highlighting
|
||||||
|
if _source_plugin zsh-syntax-highlighting; then
|
||||||
|
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
|
||||||
|
ZSH_HIGHLIGHT_STYLES[default]=none
|
||||||
|
ZSH_HIGHLIGHT_STYLES[unknown-token]=fg=white,underline
|
||||||
|
ZSH_HIGHLIGHT_STYLES[reserved-word]=fg=cyan,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[suffix-alias]=fg=green,underline
|
||||||
|
ZSH_HIGHLIGHT_STYLES[global-alias]=fg=green,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[precommand]=fg=green,underline
|
||||||
|
ZSH_HIGHLIGHT_STYLES[commandseparator]=fg=blue,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[autodirectory]=fg=green,underline
|
||||||
|
ZSH_HIGHLIGHT_STYLES[path]=bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[path_pathseparator]=
|
||||||
|
ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]=
|
||||||
|
ZSH_HIGHLIGHT_STYLES[globbing]=fg=blue,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[history-expansion]=fg=blue,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[command-substitution]=none
|
||||||
|
ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]=fg=magenta,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[process-substitution]=none
|
||||||
|
ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]=fg=magenta,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]=fg=green
|
||||||
|
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]=fg=green
|
||||||
|
ZSH_HIGHLIGHT_STYLES[back-quoted-argument]=none
|
||||||
|
ZSH_HIGHLIGHT_STYLES[back-quoted-argument-delimiter]=fg=blue,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[single-quoted-argument]=fg=yellow
|
||||||
|
ZSH_HIGHLIGHT_STYLES[double-quoted-argument]=fg=yellow
|
||||||
|
ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]=fg=yellow
|
||||||
|
ZSH_HIGHLIGHT_STYLES[rc-quote]=fg=magenta
|
||||||
|
ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]=fg=magenta,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]=fg=magenta,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]=fg=magenta,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[assign]=none
|
||||||
|
ZSH_HIGHLIGHT_STYLES[redirection]=fg=blue,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[comment]=fg=black,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[named-fd]=none
|
||||||
|
ZSH_HIGHLIGHT_STYLES[numeric-fd]=none
|
||||||
|
ZSH_HIGHLIGHT_STYLES[arg0]=fg=cyan
|
||||||
|
ZSH_HIGHLIGHT_STYLES[bracket-error]=fg=red,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[bracket-level-1]=fg=blue,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[bracket-level-2]=fg=green,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[bracket-level-3]=fg=magenta,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[bracket-level-4]=fg=yellow,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[bracket-level-5]=fg=cyan,bold
|
||||||
|
ZSH_HIGHLIGHT_STYLES[cursor-matchingbracket]=standout
|
||||||
|
fi
|
||||||
|
|
||||||
|
unset -f _source_plugin
|
||||||
|
|
||||||
|
# POWERLEVEL
|
||||||
|
if ! [[ $(tty) = /dev/tty* ]]; then
|
||||||
|
if source "$HOME/.local/antigen/bundles/romkatv/powerlevel10k/powerlevel10k.zsh-theme" 2> /dev/null; then
|
||||||
|
s=' ' # fix too wide icons
|
||||||
|
POWERLEVEL9K_MODE=nerdfont-complete
|
||||||
|
POWERLEVEL9K_SHORTEN_STRATEGY=truncate_beginning
|
||||||
|
POWERLEVEL9K_PROMPT_ADD_NEWLINE=false
|
||||||
|
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
|
||||||
|
POWERLEVEL9K_RPROMPT_ON_NEWLINE=true
|
||||||
|
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
|
||||||
|
# shellcheck disable=SC2016
|
||||||
|
POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='${P9K_CONTENT} $(whoami | grep -v "^root\$")'
|
||||||
|
POWERLEVEL9K_OS_ICON_BACKGROUND=red
|
||||||
|
POWERLEVEL9K_OS_ICON_FOREGROUND=white
|
||||||
|
POWERLEVEL9K_ROOT_INDICATOR_BACKGROUND=black
|
||||||
|
POWERLEVEL9K_ROOT_INDICATOR_FOREGROUND=red
|
||||||
|
POWERLEVEL9K_SSH_BACKGROUND=white
|
||||||
|
POWERLEVEL9K_SSH_FOREGROUND=blue
|
||||||
|
POWERLEVEL9K_FOLDER_ICON=
|
||||||
|
POWERLEVEL9K_DIR_BACKGROUND=blue
|
||||||
|
POWERLEVEL9K_DIR_FOREGROUND=black
|
||||||
|
POWERLEVEL9K_DIR_WRITABLE_BACKGROUND=black
|
||||||
|
POWERLEVEL9K_DIR_WRITABLE_FOREGROUND=red
|
||||||
|
POWERLEVEL9K_VCS_CLEAN_FOREGROUND=black
|
||||||
|
POWERLEVEL9K_VCS_CLEAN_BACKGROUND=green
|
||||||
|
POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND=black
|
||||||
|
POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND=yellow
|
||||||
|
POWERLEVEL9K_VCS_MODIFIED_FOREGROUND=white
|
||||||
|
POWERLEVEL9K_VCS_MODIFIED_BACKGROUND=black
|
||||||
|
POWERLEVEL9K_VCS_UNTRACKED_ICON=●
|
||||||
|
POWERLEVEL9K_VCS_UNSTAGED_ICON=±
|
||||||
|
POWERLEVEL9K_VCS_INCOMING_CHANGES_ICON=↓
|
||||||
|
POWERLEVEL9K_VCS_OUTGOING_CHANGES_ICON=↑
|
||||||
|
POWERLEVEL9K_VCS_COMMIT_ICON=$s
|
||||||
|
POWERLEVEL9K_STATUS_VERBOSE=false
|
||||||
|
POWERLEVEL9K_STATUS_VERBOSE=false
|
||||||
|
POWERLEVEL9K_STATUS_OK_IN_NON_VERBOSE=true
|
||||||
|
POWERLEVEL9K_EXECUTION_TIME_ICON=$s
|
||||||
|
POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=0
|
||||||
|
POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND=black
|
||||||
|
POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=blue
|
||||||
|
POWERLEVEL9K_COMMAND_BACKGROUND_JOBS_BACKGROUND=black
|
||||||
|
POWERLEVEL9K_COMMAND_BACKGROUND_JOBS_FOREGROUND=cyan
|
||||||
|
POWERLEVEL9K_TIME_ICON=
|
||||||
|
POWERLEVEL9K_TIME_FORMAT='%D{%I:%M}'
|
||||||
|
POWERLEVEL9K_TIME_BACKGROUND=black
|
||||||
|
POWERLEVEL9K_TIME_FOREGROUND=white
|
||||||
|
POWERLEVEL9K_RAM_ICON=
|
||||||
|
POWERLEVEL9K_RAM_FOREGROUND=black
|
||||||
|
POWERLEVEL9K_RAM_BACKGROUND=yellow
|
||||||
|
POWERLEVEL9K_VI_MODE_FOREGROUND=black
|
||||||
|
POWERLEVEL9K_VI_COMMAND_MODE_STRING=NORMAL
|
||||||
|
POWERLEVEL9K_VI_MODE_NORMAL_BACKGROUND=green
|
||||||
|
POWERLEVEL9K_VI_VISUAL_MODE_STRING=VISUAL
|
||||||
|
POWERLEVEL9K_VI_MODE_VISUAL_BACKGROUND=blue
|
||||||
|
POWERLEVEL9K_VI_OVERWRITE_MODE_STRING=OVERTYPE
|
||||||
|
POWERLEVEL9K_VI_MODE_OVERWRITE_BACKGROUND=red
|
||||||
|
POWERLEVEL9K_VI_INSERT_MODE_STRING=
|
||||||
|
POWERLEVEL9K_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL='\uE0B2'
|
||||||
|
POWERLEVEL9K_RIGHT_PROMPT_LAST_SEGMENT_END_SYMBOL='\uE0B0'
|
||||||
|
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='%F{blue}╭─'
|
||||||
|
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='%F{blue}╰%f '
|
||||||
|
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon root_indicator ssh dir dir_writable vcs)
|
||||||
|
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(vi_mode status command_execution_time background_jobs time ram)
|
||||||
|
unset s
|
||||||
|
else
|
||||||
|
echo '\033[33m[ ! ]\033[0m ZSH powerlevel10k not installed'
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
clear
|
||||||
|
echo
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
|
switch_powerlevel_multiline_prompt(){
|
||||||
|
[ $POWERLEVEL9K_PROMPT_ON_NEWLINE = true ] \
|
||||||
|
&& POWERLEVEL9K_PROMPT_ON_NEWLINE=false \
|
||||||
|
|| POWERLEVEL9K_PROMPT_ON_NEWLINE=true
|
||||||
|
|
||||||
|
zle && zle accept-line
|
||||||
|
}
|
||||||
|
zle -N switch_powerlevel_multiline_prompt
|
||||||
|
bindkey ^P switch_powerlevel_multiline_prompt
|
||||||
|
|
||||||
|
# ----------------------------------- MISC -----------------------------------
|
||||||
|
# If this is an xterm set the title to user@host:dir
|
||||||
|
case "$TERM" in
|
||||||
|
xterm*|rxvt*|Eterm|aterm|kterm|gnome*|alacritty)
|
||||||
|
precmd() {
|
||||||
|
print -Pnr -- $'\e]0;%n@%m: %~\a'
|
||||||
|
}
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
### Antigen
|
||||||
|
if [ -f "$HOME/.local/scripts/antigen.zsh" ]; then
|
||||||
|
source "$HOME/.local/scripts/antigen.zsh"
|
||||||
|
fi
|
||||||
|
if command -v antigen > /dev/null; then
|
||||||
|
antigen use oh-my-zsh
|
||||||
|
antigen bundle adb
|
||||||
|
antigen bundle colored-man-pages
|
||||||
|
antigen bundle command-not-found
|
||||||
|
antigen bundle copyfile
|
||||||
|
antigen bundle copybuffer
|
||||||
|
antigen bundle encode64
|
||||||
|
antigen bundle fd
|
||||||
|
antigen bundle git-auto-fetch
|
||||||
|
antigen bundle gnu-utils
|
||||||
|
antigen bundle heroku
|
||||||
|
# antigen bundle keychain
|
||||||
|
antigen bundle kubectx
|
||||||
|
antigen bundle macos
|
||||||
|
antigen bundle magic-enter
|
||||||
|
antigen bundle minikube
|
||||||
|
antigen bundle ng
|
||||||
|
antigen bundle nomad
|
||||||
|
antigen bundle npm
|
||||||
|
antigen bundle redis-cli
|
||||||
|
antigen bundle ripgrep
|
||||||
|
# antigen bundle rust
|
||||||
|
antigen bundle safe-paste
|
||||||
|
antigen bundle salt
|
||||||
|
# antigen bundle shell-proxy
|
||||||
|
# antigen bundle ssh-agent
|
||||||
|
antigen bundle sudo
|
||||||
|
antigen bundle ufw
|
||||||
|
# antigen bundle web-search
|
||||||
|
|
||||||
|
### Disable plugin alias
|
||||||
|
# alias alias=true
|
||||||
|
antigen bundle docker
|
||||||
|
antigen bundle docker-compose
|
||||||
|
antigen bundle gem
|
||||||
|
antigen bundle ionic
|
||||||
|
antigen bundle microk8s
|
||||||
|
antigen bundle multipass
|
||||||
|
antigen bundle pip
|
||||||
|
antigen bundle pm2
|
||||||
|
antigen bundle terraform
|
||||||
|
antigen bundle vagrant
|
||||||
|
antigen bundle yarn
|
||||||
|
# unalias alias
|
||||||
|
|
||||||
|
# antigen bundle zsh-interactive-cd
|
||||||
|
# antigen bundle zsh-navigation-tools
|
||||||
|
antigen bundle zsh-users/zsh-completions src
|
||||||
|
antigen bundle zsh-users/zsh-syntax-highlighting
|
||||||
|
antigen bundle zsh-users/zsh-autosuggestions
|
||||||
|
antigen bundle marlonrichert/zsh-autocomplete@main
|
||||||
|
antigen theme romkatv/powerlevel10k
|
||||||
|
antigen apply
|
||||||
|
fi
|
||||||
|
|
||||||
|
### ZSH Autocomplete
|
||||||
|
zstyle ':autocomplete:*' list-lines 14
|
||||||
|
zstyle ':autocomplete:history-search:*' list-lines 14
|
||||||
|
zstyle ':autocomplete:history-incremental-search-*:*' list-lines 14
|
||||||
|
if command -v fzf > /dev/null; then
|
||||||
|
zstyle ':autocomplete:*' fzf-completion yes
|
||||||
|
fi
|
||||||
|
if command -v zoxide > /dev/null; then
|
||||||
|
zstyle ':autocomplete:recent-dirs' backend zoxide
|
||||||
|
fi
|
||||||
|
|
||||||
|
### direnv
|
||||||
|
if command -v direnv > /dev/null; then
|
||||||
|
eval "$(direnv hook zsh)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Java (asdf)
|
||||||
|
if [ -f "$ASDF_DATA_DIR/plugins/java/set-java-home.zsh" ]; then
|
||||||
|
# . "$ASDF_DATA_DIR/plugins/java/set-java-home.zsh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
### mcfly
|
||||||
|
if command -v mcfly > /dev/null; then
|
||||||
|
eval "$(mcfly init zsh)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
### zoxide
|
||||||
|
if command -v zoxide > /dev/null; then
|
||||||
|
eval "$(zoxide init --cmd cd zsh)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Fig
|
||||||
|
if [ -f "$HOME/.fig/shell/zshrc.post.zsh" ]; then
|
||||||
|
source "$HOME/.fig/shell/zshrc.post.zsh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Powerline
|
||||||
|
if [ -f "$HOME/.local/scripts/p10k.zsh" ]; then
|
||||||
|
source "$HOME/.local/scripts/p10k.zsh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
### Bash Completions
|
||||||
|
autoload -U +X bashcompinit && bashcompinit
|
||||||
|
|
||||||
|
### HashiCorp Vault
|
||||||
|
if command -v vault > /dev/null; then
|
||||||
|
complete -o nospace -C vault vault
|
||||||
|
fi
|
|
@ -1 +0,0 @@
|
||||||
|
|
64
TODO
64
TODO
|
@ -1,64 +0,0 @@
|
||||||
|
|
||||||
|
|
||||||
### Ensure these PATHs are added on Windows
|
|
||||||
add to PATH:
|
|
||||||
'%ProgramFiles(x86)%\mitmproxy\bin'
|
|
||||||
'%ProgramFiles(x86)%\juju'
|
|
||||||
|
|
||||||
### POSSIBLY USEFUL SOFTWARE
|
|
||||||
https://hackjutsu.com/Lepton/
|
|
||||||
|
|
||||||
### WINDOWS MISSING PACKAGES
|
|
||||||
# FOLLOWING SOFTWARE IS IN Brewfile.terminal but not in Scoop.terminal or Chocolatey.terminal
|
|
||||||
# TODO: Find replacements or alternatives
|
|
||||||
# It's possible some are available via other installation methods - please research and figure out which ones
|
|
||||||
# we can install via NPM, Go etc.
|
|
||||||
# LSD used instead of exa for Windows
|
|
||||||
# Glances not on Windows
|
|
||||||
# ASDF not on Windows
|
|
||||||
# autorestic not on windows
|
|
||||||
# gist not on Windows
|
|
||||||
# git-secret not on Windows
|
|
||||||
# nb not on Windows
|
|
||||||
# zsh not on Windows
|
|
||||||
# bandwhich
|
|
||||||
# nnn not on Windows
|
|
||||||
# rm-improved not on Windows
|
|
||||||
# hey not on Windows
|
|
||||||
# pass not on Windows
|
|
||||||
# sysbench not on Windows
|
|
||||||
# teller not on Windows
|
|
||||||
# ssh-vault not on Windows
|
|
||||||
# automake not on windows
|
|
||||||
# zx --- needs npm?
|
|
||||||
# pywhat --- ???
|
|
||||||
# mycli --- ?
|
|
||||||
# litecli --- ?
|
|
||||||
# yj --- ?
|
|
||||||
# choose --- ?
|
|
||||||
# tmux not on Windows
|
|
||||||
# mcfly
|
|
||||||
# t-rec
|
|
||||||
# whalebrew
|
|
||||||
# ots
|
|
||||||
|
|
||||||
|
|
||||||
### WINDOWS MISSING FROM DEV environment
|
|
||||||
# bun
|
|
||||||
# codeclimate
|
|
||||||
# minio mc
|
|
||||||
# dockle
|
|
||||||
# git-subrepo
|
|
||||||
# oq
|
|
||||||
# sdkman
|
|
||||||
# sshpass
|
|
||||||
# goofys
|
|
||||||
# tfenv
|
|
||||||
# shc
|
|
||||||
|
|
||||||
|
|
||||||
{{ if not $headless -}}
|
|
||||||
age:
|
|
||||||
identity: "{{ .chezmoi.homeDir }}/.config/age/key.txt"
|
|
||||||
recipient: "age16kxd4ljclq9ksnxvl2ee7a5xnj744kwyv04p04ka0n3rzxdpl5nsq52svl"
|
|
||||||
{{- end }}
|
|
|
@ -1,3 +1,71 @@
|
||||||
|
|
||||||
|
|
||||||
|
### Ensure these PATHs are added on Windows
|
||||||
|
add to PATH:
|
||||||
|
'%ProgramFiles(x86)%\mitmproxy\bin'
|
||||||
|
'%ProgramFiles(x86)%\juju'
|
||||||
|
|
||||||
|
### POSSIBLY USEFUL SOFTWARE
|
||||||
|
https://hackjutsu.com/Lepton/
|
||||||
|
|
||||||
|
### WINDOWS MISSING PACKAGES
|
||||||
|
# FOLLOWING SOFTWARE IS IN Brewfile.terminal but not in Scoop.terminal or Chocolatey.terminal
|
||||||
|
# TODO: Find replacements or alternatives
|
||||||
|
# It's possible some are available via other installation methods - please research and figure out which ones
|
||||||
|
# we can install via NPM, Go etc.
|
||||||
|
# LSD used instead of exa for Windows
|
||||||
|
# Glances not on Windows
|
||||||
|
# ASDF not on Windows
|
||||||
|
# autorestic not on windows
|
||||||
|
# gist not on Windows
|
||||||
|
# git-secret not on Windows
|
||||||
|
# nb not on Windows
|
||||||
|
# zsh not on Windows
|
||||||
|
# bandwhich
|
||||||
|
# nnn not on Windows
|
||||||
|
# rm-improved not on Windows
|
||||||
|
# hey not on Windows
|
||||||
|
# pass not on Windows
|
||||||
|
# sysbench not on Windows
|
||||||
|
# teller not on Windows
|
||||||
|
# ssh-vault not on Windows
|
||||||
|
# automake not on windows
|
||||||
|
# zx --- needs npm?
|
||||||
|
# pywhat --- ???
|
||||||
|
# mycli --- ?
|
||||||
|
# litecli --- ?
|
||||||
|
# yj --- ?
|
||||||
|
# choose --- ?
|
||||||
|
# tmux not on Windows
|
||||||
|
# mcfly
|
||||||
|
# t-rec
|
||||||
|
# whalebrew
|
||||||
|
# ots
|
||||||
|
|
||||||
|
|
||||||
|
### WINDOWS MISSING FROM DEV environment
|
||||||
|
# bun
|
||||||
|
# codeclimate
|
||||||
|
# minio mc
|
||||||
|
# dockle
|
||||||
|
# git-subrepo
|
||||||
|
# oq
|
||||||
|
# sdkman
|
||||||
|
# sshpass
|
||||||
|
# goofys
|
||||||
|
# tfenv
|
||||||
|
# shc
|
||||||
|
|
||||||
|
|
||||||
|
{{ if not $headless -}}
|
||||||
|
age:
|
||||||
|
identity: "{{ .chezmoi.homeDir }}/.config/age/key.txt"
|
||||||
|
recipient: "age16kxd4ljclq9ksnxvl2ee7a5xnj744kwyv04p04ka0n3rzxdpl5nsq52svl"
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
## Figure out where these go
|
||||||
|
|
||||||
AWS_ACCESS_KEY_ID
|
AWS_ACCESS_KEY_ID
|
||||||
AWS_SECRET_ACCESS_KEY
|
AWS_SECRET_ACCESS_KEY
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
https://github.com/vim-airline/vim-airline.git
|
|
||||||
https://github.com/itchyny/lightline.vim.git
|
|
||||||
https://github.com/pangloss/vim-javascript.git
|
|
||||||
https://github.com/mxw/vim-jsx.git
|
|
||||||
https://github.com/plasticboy/vim-markdown.git
|
|
||||||
https://github.com/ekalinin/dockerfile.vim.git
|
|
||||||
https://github.com/stanangeloff/php.vim.git
|
|
||||||
https://github.com/hdima/python-syntax.git
|
|
||||||
https://github.com/scrooloose/nerdtree.git
|
|
||||||
https://github.com/tpope/vim-fugitive.git
|
|
||||||
https://github.com/prettier/vim-prettier.git
|
|
||||||
https://github.com/tpope/vim-sensible.git
|
|
||||||
https://github.com/editorconfig/editorconfig-vim.git
|
|
||||||
https://github.com/airblade/vim-gitgutter.git
|
|
||||||
https://github.com/tpope/vim-surround.git
|
|
||||||
https://github.com/kristijanhusak/vim-carbon-now-sh.git
|
|
||||||
https://github.com/terryma/vim-multiple-cursors.git
|
|
||||||
https://github.com/dense-analysis/ale.git
|
|
||||||
https://github.com/junegunn/fzf.git
|
|
||||||
https://github.com/junegunn/fzf.vim.git
|
|
||||||
https://github.com/neoclide/coc.nvim.git
|
|
||||||
https://github.com/vim-syntastic/syntastic.git
|
|
||||||
https://github.com/ryanoasis/vim-devicons.git
|
|
||||||
https://github.com/nanotee/zoxide.vim.git
|
|
||||||
https://github.com/fatih/vim-go.git
|
|
||||||
https://github.com/ycm-core/YouCompleteMe.git
|
|
||||||
https://github.com/pearofducks/ansible-vim.git
|
|
||||||
### REMOVE THIS NOTE
|
|
||||||
### cat temp.txt | while read LINE; do FOLDER="$(echo $LINE | sed 's/.*\/\(.*\).git/\1/')"; git subrepo clone $LINE ./dotfiles/.vim/plugged/$FOLDER; done
|
|
Loading…
Reference in a new issue