Compare commits
10 commits
3f28038548
...
44d128df4a
Author | SHA1 | Date | |
---|---|---|---|
44d128df4a | |||
e33566ffad | |||
5e9ccc05c3 | |||
98a08ddd63 | |||
7f57b5f175 | |||
169356954e | |||
5cba9ce420 | |||
62bf7002c4 | |||
9bbe33f804 | |||
0c9d217e9e |
10 changed files with 56 additions and 36 deletions
|
@ -1,3 +1,8 @@
|
|||
.config/zsh/local
|
||||
.config/zsh/.antidote
|
||||
.config/zsh/.zcompdump
|
||||
.config/zsh/.zplugins.zsh
|
||||
|
||||
{{- if (not .gui) }}
|
||||
bin/get-updates
|
||||
bin/lock
|
||||
|
|
|
@ -62,3 +62,5 @@ Lua
|
|||
NextFlow
|
||||
webserver
|
||||
catppuccin
|
||||
cytosol
|
||||
Lipofectamine
|
||||
|
|
|
@ -4,22 +4,39 @@ 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 -}}
|
||||
- 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
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
alias g=git
|
||||
alias c=clear
|
||||
|
||||
alias vi=vim
|
||||
|
||||
|
@ -21,6 +22,7 @@ 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; \
|
||||
|
@ -30,13 +32,6 @@ 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)'
|
||||
|
||||
|
|
10
home/private_dot_config/zsh/conf.d/dots.zsh
Normal file
10
home/private_dot_config/zsh/conf.d/dots.zsh
Normal file
|
@ -0,0 +1,10 @@
|
|||
# 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)
|
||||
}
|
||||
|
||||
|
10
home/private_dot_config/zsh/functions/large-git
Normal file
10
home/private_dot_config/zsh/functions/large-git
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/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
|
|
@ -1,10 +0,0 @@
|
|||
# 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$ '
|
|
@ -1,7 +0,0 @@
|
|||
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,7 +3,9 @@
|
|||
export EZA_COLORS="da=37"
|
||||
export EZA_MIN_LUMINANCE=50
|
||||
|
||||
is-tty || alias eza="eza --icons"
|
||||
alias eza="eza --group-directories-first"
|
||||
is-tty || alias eza="${aliases[eza]:-eza} --icons"
|
||||
|
||||
alias ls='eza'
|
||||
alias la='eza -la'
|
||||
alias l='eza -lb --git'
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
unalias x # set by extract plugin
|
||||
source <(pkgx --shellcode) #docs.pkgx.sh/shellcode
|
||||
|
||||
|
Loading…
Reference in a new issue