Compare commits
No commits in common. "44d128df4ad0520f3df846a39accdba354380208" and "3f28038548e88f5ed5c2ee17d82bbbb949c2d827" have entirely different histories.
44d128df4a
...
3f28038548
10 changed files with 36 additions and 56 deletions
|
@ -1,8 +1,3 @@
|
|||
.config/zsh/local
|
||||
.config/zsh/.antidote
|
||||
.config/zsh/.zcompdump
|
||||
.config/zsh/.zplugins.zsh
|
||||
|
||||
{{- if (not .gui) }}
|
||||
bin/get-updates
|
||||
bin/lock
|
||||
|
|
|
@ -62,5 +62,3 @@ Lua
|
|||
NextFlow
|
||||
webserver
|
||||
catppuccin
|
||||
cytosol
|
||||
Lipofectamine
|
||||
|
|
|
@ -4,39 +4,22 @@ transient_prompt:
|
|||
foreground: cyan
|
||||
background: transparent
|
||||
template: "❯ "
|
||||
palette:
|
||||
rosewater: '#f5e0dc'
|
||||
sky: '#89dceb'
|
||||
final_space: true
|
||||
blocks:
|
||||
- type: prompt
|
||||
alignment: left
|
||||
segments:
|
||||
# language segments
|
||||
- type: python
|
||||
style: plain
|
||||
foreground: "yellow"
|
||||
template: " {{ .Full }} "
|
||||
- type: go
|
||||
style: plain
|
||||
foreground: "cyan"
|
||||
template: " {{ .Full }} "
|
||||
- type: rust
|
||||
style: plain
|
||||
foreground: "red"
|
||||
template: " {{ .Full }} "
|
||||
- type: node
|
||||
style: plain
|
||||
foreground: "p:sky"
|
||||
template: " {{ .Full }} "
|
||||
- type: project
|
||||
style: plain
|
||||
foreground: "p:rosewater"
|
||||
template: >
|
||||
{{ if .Error }}{{ .Error }}{{ else }}{{ if .Version }}
|
||||
{{.Version}}{{ end }}{{ if .Name }}{{ .Name }} {{ end }}{{ end -}}
|
||||
template: " {{ .Full }}"
|
||||
- type: git
|
||||
foreground: magenta
|
||||
# foreground_templates:
|
||||
# - '{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}'
|
||||
# - '{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}'
|
||||
# - '{{ if gt .Ahead 0 }}#B388FF{{ end }}'
|
||||
# - '{{ if gt .Behind 0 }}#B388FF{{ end }}'
|
||||
properties:
|
||||
branch_max_length: 25
|
||||
fetch_stash_count: true
|
||||
|
@ -44,7 +27,7 @@ blocks:
|
|||
fetch_upstream_icon: true
|
||||
style: plain
|
||||
template: >
|
||||
{{ .UpstreamIcon }}{{ .HEAD }}{{ if .BranchStatus }} {{ .BranchStatus }}{{ end -}}
|
||||
{{ .UpstreamIcon }}{{ .HEAD }}{{ if .BranchStatus }}{{ .BranchStatus }}{{ end -}}
|
||||
{{ if .Working.Changed }} {{ .Working.String }}{{ end -}}
|
||||
{{ if .Staging.Changed }} {{ .Staging.String }}{{ end -}}
|
||||
{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end -}}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
alias g=git
|
||||
alias c=clear
|
||||
|
||||
alias vi=vim
|
||||
|
||||
|
@ -22,7 +21,6 @@ alias mkc="make -C"
|
|||
alias yyyymmdd='date +%Y%m%d'
|
||||
alias ds='date +%Y-%m-%d'
|
||||
alias ts='date +%Y-%m-%dT%H:%M:%SZ'
|
||||
alias today="date +'%Y.%m.%d'"
|
||||
|
||||
# url encode/decode
|
||||
alias urldecode='python3 -c "import sys, urllib.parse as ul; \
|
||||
|
@ -32,6 +30,13 @@ alias urlencode='python3 -c "import sys, urllib.parse as ul; \
|
|||
|
||||
alias rclone='rclone --filter-from ~/.config/rclone/filter-file.txt'
|
||||
|
||||
# alias zbench='for i in {1..10}; do /usr/bin/time zsh -lic exit; done'
|
||||
alias zdot='cd ${ZDOTDIR:-~}'
|
||||
alias dots='cd ${DOTFILES_DIR:-~/.dotfiles}'
|
||||
alias today="date +'%Y-%m-%d'"
|
||||
alias dots-drop='chezmoi forget --interactive $(chezmoi managed -p absolute | fzf)'
|
||||
alias dots-add='chezmoi re-add --interactive'
|
||||
|
||||
alias viv-remote='python3 <(curl -fsSL viv.dayl.in/viv.py)'
|
||||
alias viv-dev='python3 <(curl -fsSL https://raw.githubusercontent.com/daylinmorgan/viv/dev/src/viv/viv.py)'
|
||||
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
# alias zbench='for i in {1..10}; do /usr/bin/time zsh -lic exit; done'
|
||||
alias zdot='cd ${ZDOTDIR:-~}'
|
||||
alias dots='cd ${DOTFILES_DIR:-~/.dotfiles}'
|
||||
alias dots-drop='chezmoi forget --interactive $(chezmoi managed -p absolute | fzf -m)'
|
||||
# alias dots-add='chezmoi re-add --interactive'
|
||||
function dots-add {
|
||||
chezmoi add $(chezmoi status | grep '^MM' | awk -v home="$HOME/" '{print home$2}' | fzf -m)
|
||||
}
|
||||
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
# https://stackoverflow.com/questions/10622179/how-to-find-identify-large-commits-in-git-history
|
||||
|
||||
git rev-list --objects --all |
|
||||
git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' |
|
||||
sed -n 's/^blob //p' |
|
||||
sort --numeric-sort --key=2 |
|
||||
cut -c 1-12,41- |
|
||||
$(command -v gnumfmt || echo numfmt) --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest
|
10
home/private_dot_config/zsh/zexists.d/cmd/anti-starship.zsh
Normal file
10
home/private_dot_config/zsh/zexists.d/cmd/anti-starship.zsh
Normal file
|
@ -0,0 +1,10 @@
|
|||
# fall back prompt for tty
|
||||
autoload -Uz vcs_info
|
||||
precmd() {
|
||||
vcs_info
|
||||
}
|
||||
|
||||
zstyle ':vcs_info:git:*' formats '%b '
|
||||
|
||||
setopt PROMPT_SUBST
|
||||
PROMPT='%F{green}%*%f %F{blue}%~%f %F{red}${vcs_info_msg_0_}%f$ '
|
|
@ -0,0 +1,7 @@
|
|||
if is-tty; then
|
||||
export STARSHIP_CONFIG=~/.config/starship/plain.toml
|
||||
else
|
||||
export STARSHIP_CONFIG=~/.config/starship/config.toml
|
||||
fi
|
||||
|
||||
eval "$(starship init zsh)"
|
|
@ -3,9 +3,7 @@
|
|||
export EZA_COLORS="da=37"
|
||||
export EZA_MIN_LUMINANCE=50
|
||||
|
||||
alias eza="eza --group-directories-first"
|
||||
is-tty || alias eza="${aliases[eza]:-eza} --icons"
|
||||
|
||||
is-tty || alias eza="eza --icons"
|
||||
alias ls='eza'
|
||||
alias la='eza -la'
|
||||
alias l='eza -lb --git'
|
||||
|
|
4
home/private_dot_config/zsh/zexists.d/cmd/pkgx.zsh
Normal file
4
home/private_dot_config/zsh/zexists.d/cmd/pkgx.zsh
Normal file
|
@ -0,0 +1,4 @@
|
|||
unalias x # set by extract plugin
|
||||
source <(pkgx --shellcode) #docs.pkgx.sh/shellcode
|
||||
|
||||
|
Loading…
Reference in a new issue