Compare commits
2 commits
a0f578a204
...
c1c0a2e6c9
Author | SHA1 | Date | |
---|---|---|---|
Gabe Venberg | c1c0a2e6c9 | ||
Gabe Venberg | 9b078afb68 |
|
@ -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}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue