Compare commits
7 Commits
b79c8ea3da
...
61a8b9895b
Author | SHA1 | Date |
---|---|---|
![]() |
61a8b9895b | |
![]() |
b8301a0160 | |
![]() |
db54baf1b9 | |
![]() |
f47d0d00ed | |
![]() |
c8c218f860 | |
![]() |
6ea5f89bb4 | |
![]() |
0ac6691e00 |
|
@ -64,6 +64,29 @@
|
|||
{{- end -}}
|
||||
{{- end }}
|
||||
|
||||
{{- with $repo := "theimpostor/osc" -}}
|
||||
{{- with $version := (gitHubLatestRelease $repo).GetTagName -}}
|
||||
{{- $_ := set $externals ".local/bin/osc" (dict
|
||||
"type" "archive-file"
|
||||
"url" (printf "https://github.com/%s/releases/download/%s/osc_linux_x86_64.tar.gz" $repo $version)
|
||||
"path" "osc"
|
||||
"executable" true
|
||||
"refreshPeriod" $defaultRefresh
|
||||
) -}}
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
|
||||
{{- with $repo := "Lifailon/lazyjournal" -}}
|
||||
{{- with $version := (gitHubLatestRelease $repo).GetTagName -}}
|
||||
{{- $_ := set $externals ".local/bin/lazyjournal" (dict
|
||||
"type" "file"
|
||||
"url" (printf "https://github.com/%s/releases/download/%s/lazyjournal-%s-linux-amd64" $repo $version $version)
|
||||
"executable" true
|
||||
"refreshPeriod" $defaultRefresh
|
||||
) -}}
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
|
||||
{{- $externals | toYaml }}
|
||||
".config/sz.env/lib/ble.sh.curl":
|
||||
type: "archive"
|
||||
|
|
|
@ -0,0 +1,101 @@
|
|||
# Customized, based on tokyo-night
|
||||
|
||||
# global prompt configuration ( https://starship.rs/config/#prompt )
|
||||
format = """
|
||||
[░▒▓](#a3aed2)\
|
||||
$os\
|
||||
[](bg:#769ff0 fg:#a3aed2)\
|
||||
$directory\
|
||||
[](fg:#769ff0 bg:#394260)\
|
||||
$git_branch\
|
||||
$git_status\
|
||||
[](fg:#394260 bg:#212736)\
|
||||
$nodejs\
|
||||
$rust\
|
||||
$golang\
|
||||
[](fg:#212736 bg:#1d2230)\
|
||||
$time\
|
||||
[](fg:#212736 bg:#1d2230)\
|
||||
$cmd_duration\
|
||||
$status\
|
||||
[ ](fg:#1d2230)\
|
||||
$line_break$character"""
|
||||
|
||||
command_timeout = 1500 # milliseconds; default is 500
|
||||
|
||||
[profiles]
|
||||
transient = """
|
||||
$time\
|
||||
[](fg:#212736 bg:#1d2230)\
|
||||
$character"""
|
||||
|
||||
|
||||
[os]
|
||||
style = "bg:#a3aed2 fg:#090c0c"
|
||||
disabled = false
|
||||
|
||||
# Without NerdFont
|
||||
#[os.symbols]
|
||||
#Windows = " Win"
|
||||
|
||||
# NerdFont - see https://www.nerdfonts.com/cheat-sheet
|
||||
[os.symbols]
|
||||
Windows = " "
|
||||
|
||||
[directory]
|
||||
style = "fg:#e3e5e5 bg:#769ff0"
|
||||
format = "[ $path ]($style)"
|
||||
truncation_length = 3
|
||||
truncation_symbol = "…/"
|
||||
|
||||
[directory.substitutions]
|
||||
"Documents" = " "
|
||||
"Downloads" = " "
|
||||
"Music" = " "
|
||||
"Pictures" = " "
|
||||
|
||||
[git_branch]
|
||||
symbol = ""
|
||||
style = "bg:#394260"
|
||||
format = '[[ $symbol $branch ](fg:#769ff0 bg:#394260)]($style)'
|
||||
|
||||
[git_status]
|
||||
style = "bg:#394260"
|
||||
format = '[[($all_status$ahead_behind )](fg:#769ff0 bg:#394260)]($style)'
|
||||
|
||||
[nodejs]
|
||||
symbol = ""
|
||||
style = "bg:#212736"
|
||||
format = '[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)'
|
||||
|
||||
[rust]
|
||||
symbol = ""
|
||||
style = "bg:#212736"
|
||||
format = '[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)'
|
||||
|
||||
[golang]
|
||||
symbol = ""
|
||||
style = "bg:#212736"
|
||||
format = '[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)'
|
||||
|
||||
[time]
|
||||
disabled = false
|
||||
time_format = "%R" # Hour:Minute Format
|
||||
style = "bg:#1d2230"
|
||||
format = '[[ $time ](fg:#a0a9cb bg:#1d2230)]($style)'
|
||||
|
||||
[cmd_duration]
|
||||
min_time = 500 # milliseconds
|
||||
# nerd font version:
|
||||
format = 'prev: [[ $duration ](fg:#a0a9cb bg:#1d2230)]($style)'
|
||||
# General UNICODE font version:
|
||||
# format = '[[ ⧗ $duration ](fg:#a0a9cb bg:#1d2230)]($style)'
|
||||
# Emoji version:
|
||||
# format = '[[ ⌛ $duration ](fg:#a0a9cb bg:#1d2230)]($style)'
|
||||
|
||||
[status]
|
||||
disabled = false
|
||||
|
||||
[character]
|
||||
disabled = false
|
||||
|
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/env -S bash -c 'echo "Not a user script. source(aka .) only"'
|
||||
|
||||
if is_cmd midclt; then
|
||||
if is_cmd midclt && [ -z "$SCALE_POOL" ]; then
|
||||
export SCALE_POOL=szmedia
|
||||
|
||||
export SCALE_POOL="$(midclt call "kubernetes.config" 2>/dev/null | jq -r '.pool')"
|
||||
[ -n "$SCALE_POOL" ] && [ "$SCALE_POOL" != "null" ] || export SCALE_POOL="$(midclt call "pool.query" 2>/dev/null | jq -r '.[0].name')"
|
||||
[ -d "/mnt/$SCALE_POOL" ] || unset SCALE_POOL
|
||||
|
|
|
@ -8,11 +8,18 @@ if [[ "${BASE_SHELL}" == "zsh" ]]; then
|
|||
mkdir -p $ZSH_CACHE_DIR/completions
|
||||
mkdir -p "$HOME/.local/share/zsh/completions"
|
||||
|
||||
[ -d "$HOME/.local/share/zsh/completions" ] && fpath=(
|
||||
$HOME/.local/share/zsh/completions
|
||||
$fpath
|
||||
)
|
||||
|
||||
# Remove duplicates from fpath, and add local completion dir
|
||||
fpath=( $(
|
||||
for d in $(
|
||||
awk '!seen[$0]++' <(
|
||||
echo "$HOME/.local/share/zsh/completions"
|
||||
printf '%s\n' $fpath
|
||||
)
|
||||
); do
|
||||
[ -d "$d" ] && echo "$d"
|
||||
done
|
||||
) )
|
||||
|
||||
skip_global_compinit=1
|
||||
|
||||
# # Jump to the bottom of the screen
|
||||
|
|
|
@ -15,7 +15,7 @@ BASE_SHELL=$(basename "$SHELL")
|
|||
|
||||
if is_sourced; then
|
||||
zellij-cleanup() {
|
||||
which zellij > /dev/null && which zellij | grep -E "^$HOME" | ${SUDO:-} xargs -tr rm
|
||||
env which zellij > /dev/null && env which zellij | grep -E "^$HOME" | ${SUDO:-} xargs -tr rm
|
||||
[[ -d "$HOME/.cache/zellij" ]] && echo "$HOME/.cache/zellij" | ${SUDO:-} xargs -tr rm -fR
|
||||
find /tmp -maxdepth 1 -mindepth 1 -type d -name 'zellij*' -print0 | ${SUDO:-} xargs -r0t rm -fR
|
||||
if [[ -d "$HOME/.cache/zellij" ]]; then
|
||||
|
@ -26,7 +26,8 @@ if is_sourced; then
|
|||
fi
|
||||
}
|
||||
refresh-zellij() {
|
||||
if [ -z "$(which zellij)" ] && ! [ -x ~/.local/bin/zellij ]; then
|
||||
${SET:-:} -x
|
||||
if [ -z "$(env which zellij)" ] && ! [ -x ~/.local/bin/zellij ]; then
|
||||
if [[ ! -r /tmp/zellij/bootstrap/zellij ]]; then
|
||||
printf "Grabbing zellij from the web!\n"
|
||||
bash <(curl -sL zellij.dev/launch) "--help" > /dev/null 2>&1 || true
|
||||
|
@ -48,13 +49,14 @@ if is_sourced; then
|
|||
}
|
||||
zellij-completion() {
|
||||
if [[ "${BASE_SHELL}" == "zsh" ]]; then
|
||||
. <( env zellij setup --generate-completion zsh | sed -Ee 's/^(_(zellij) ).*/compdef \1\2/' )
|
||||
type _zellij > /dev/null \
|
||||
|| . <( env zellij setup --generate-completion zsh | sed -Ee 's/^(_(zellij) ).*/compdef \1\2/' )
|
||||
else
|
||||
. <( env zellij setup --generate-completion "$BASE_SHELL" )
|
||||
fi
|
||||
}
|
||||
${SET:-:} -x
|
||||
if [[ -n "$(which zellij)" ]]; then
|
||||
if [[ -n "$(env which zellij)" ]]; then
|
||||
zellij-completion
|
||||
fi
|
||||
${SET:-:} -x
|
||||
|
|
|
@ -1 +1 @@
|
|||
nvim.AppImage
|
||||
nvim
|
||||
|
|
|
@ -1 +1 @@
|
|||
nvim.AppImage
|
||||
nvim
|
||||
|
|
|
@ -1 +1 @@
|
|||
nvim.AppImage
|
||||
nvim
|
||||
|
|
|
@ -1 +1 @@
|
|||
nvim.AppImage
|
||||
nvim
|
||||
|
|
Loading…
Reference in New Issue