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
}
#look up something on cheat.sh
def cheat [query: string] {
curl $"cheat.sh/($query)"
}
# parses git log into a nushell table.
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}

View file

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