Compare commits
4 commits
85e0bb6236
...
d5e02973ad
Author | SHA1 | Date | |
---|---|---|---|
d5e02973ad | |||
fb136b212a | |||
436a71dc26 | |||
86205fcc27 |
9 changed files with 40 additions and 21 deletions
|
@ -59,6 +59,7 @@ def check-exe [] {
|
|||
}
|
||||
|
||||
def compare-versions [] {
|
||||
each {||
|
||||
let repo = $in
|
||||
let $bin = $repo | repo-to-bin
|
||||
if not ($bin | check-exe) { return }
|
||||
|
@ -70,6 +71,7 @@ current:
|
|||
($current)
|
||||
"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[
|
||||
|
@ -83,5 +85,5 @@ current:
|
|||
zyedidia/eget
|
||||
prefix-dev/pixi
|
||||
]
|
||||
| each {|| $in | compare-versions}
|
||||
| compare-versions
|
||||
| ignore
|
||||
|
|
|
@ -1,17 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
COLUMNS=$(tput cols)
|
||||
PREFIX='%C(bold magenta)%h%C(reset)'
|
||||
SUFFIX='%C(dim white)%aN%C(reset)%C(auto)%d%C(reset)'
|
||||
|
||||
if [[ "$COLUMNS" -gt 100 ]]; then
|
||||
format='%C(bold)%<(50,trunc)%s%C(reset) %C(green)%><(15,trunc)%ar%C(reset)'
|
||||
else
|
||||
format='%C(bold)%s%C(reset) %C(green)%as%C(reset)'
|
||||
fi
|
||||
|
||||
format="$PREFIX $format $SUFFIX"
|
||||
PREFIX='%C(bold magenta)%h%C(reset)' # hash
|
||||
SUFFIX='%C(auto)%d%C(reset) %C(dim white)%aN%C(reset)|%C(green)%ar%C(reset)' # branch, author, time
|
||||
format="$PREFIX %C(bold)%s%C(reset)$SUFFIX"
|
||||
|
||||
exec git \
|
||||
log \
|
||||
|
|
19
home/private_bin/executable_install-nu-plugins
Normal file
19
home/private_bin/executable_install-nu-plugins
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env nu
|
||||
|
||||
if (which cargo | length) == 0 {
|
||||
print -e $"(ansi red)cargo not found(ansi reset)"
|
||||
exit 1
|
||||
}
|
||||
|
||||
cargo install nu_plugin_polars
|
||||
|
||||
glob ~/.cargo/bin/nu_plugin_*
|
||||
| each { |name|
|
||||
print -e $">> (ansi cyan)($name)(ansi reset)"
|
||||
try {
|
||||
plugin add $name
|
||||
} catch { |err|
|
||||
print -e $"(ansi red)($err.msg)(ansi reset)"
|
||||
}
|
||||
}
|
||||
| ignore
|
|
@ -1,6 +1,4 @@
|
|||
[Settings]
|
||||
; gtk-icon-theme-name=breeze
|
||||
; gtk-theme-name=Catppuccin-Mocha-Standard-Rosewater-Dark
|
||||
gtk-application-prefer-dark-theme=true
|
||||
gtk-cursor-theme-name=Catppuccin-Mocha-Mauve-Cursors
|
||||
gtk-cursor-theme-size=24
|
||||
|
|
8
home/private_dot_config/zsh/functions/executable_cht
Normal file
8
home/private_dot_config/zsh/functions/executable_cht
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
if [ $# -eq 0 ];
|
||||
then
|
||||
curl -s cheat.sh | less -R
|
||||
else
|
||||
curl -s cheat.sh/${@} | less -R
|
||||
fi
|
|
@ -1,8 +1,3 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
if [ $# -eq 0 ];
|
||||
then
|
||||
curl -s cheat.sh | less -R
|
||||
else
|
||||
curl -s cheat.sh/${@} | less -R
|
||||
fi
|
||||
llm -s "Answer in as few words as possible. Use a brief style with short replies." -m claude-3.5-sonnet "$*"
|
||||
|
|
3
home/private_dot_config/zsh/functions/executable_qc
Normal file
3
home/private_dot_config/zsh/functions/executable_qc
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
llm -m claude-3-haiku "$*"
|
3
home/private_dot_config/zsh/functions/executable_qe
Normal file
3
home/private_dot_config/zsh/functions/executable_qe
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
llm -m claude-3-opus "$*"
|
Loading…
Reference in a new issue