Compare commits

..

2 commits

Author SHA1 Message Date
Gabe Venberg c1c0a2e6c9 added custom command to query cheat.sh 2024-02-26 16:59:44 -06:00
Gabe Venberg 9b078afb68 added shell to starship prompt. 2024-02-26 16:59:28 -06:00
2 changed files with 16 additions and 1 deletions

View file

@ -871,6 +871,11 @@ def slideshow [delay: int = 10] {
feh --full-screen --randomize --auto-zoom --recursive --slideshow-delay $delay feh --full-screen --randomize --auto-zoom --recursive --slideshow-delay $delay
} }
#look up something on cheat.sh
def cheat [query: string] {
curl $"cheat.sh/($query)"
}
# parses git log into a nushell table. # parses git log into a nushell table.
def --wrapped git-log [...rest] { def --wrapped git-log [...rest] {
git log --pretty=%h»¦«%H»¦«%s»¦«%aN»¦«%aE»¦«%aD ...$rest | lines | split column "»¦«" commit full-commit subject name email date | upsert date {|d| $d.date | into datetime} git log --pretty=%h»¦«%H»¦«%s»¦«%aN»¦«%aE»¦«%aD ...$rest | lines | split column "»¦«" commit full-commit subject name email date | upsert date {|d| $d.date | into datetime}

View file

@ -2,6 +2,7 @@
format = """ format = """
[](color_orange)\ [](color_orange)\
$shell\
$hostname\ $hostname\
[@](bg:color_orange)\ [@](bg:color_orange)\
$username\ $username\
@ -16,7 +17,7 @@ $git_metrics\
[](fg:color_blue bg:color_bg3)\ [](fg:color_blue bg:color_bg3)\
$git_commit\ $git_commit\
$fill\ $fill\
[](fg:color_bg3 bg:color_bg1)\ [](fg:color_bg1 bg:color_bg3)\
$time\ $time\
[ ](fg:color_bg1)\ [ ](fg:color_bg1)\
$line_break$character""" $line_break$character"""
@ -42,6 +43,15 @@ ssh_only = false
format = "[$ssh_symbol$hostname]($style)" format = "[$ssh_symbol$hostname]($style)"
style = "bg:color_orange" style = "bg:color_orange"
[shell]
disabled = false
bash_indicator = '$'
fish_indicator = '<><'
zsh_indicator = '%'
nu_indicator = '>'
format = '[$indicator ]($style)'
style = "bg:color_orange"
[fill] [fill]
symbol = " " symbol = " "
style = "bg:color_bg3" style = "bg:color_bg3"