1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 22:57:46 +00:00

powerline : NU_POWER_MODE and NU_POWER_BENCHMARK (#464)

* powerline : NU_POWER_MODE and NU_POWER_BENCHMARK

* zoxide-menu

* direnv

* dynamic-load

* logtime

---------

Co-authored-by: agent <agent@nuc>
This commit is contained in:
fj0r 2023-04-27 02:36:55 +08:00 committed by GitHub
parent 80df447c83
commit c5865e0825
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 311 additions and 38 deletions

View file

@ -50,20 +50,18 @@ export def _git_log [v num] {
}
}
# FIXME: number-like
def "nu-complete git log" [] {
git log -n 32 --pretty=%h»¦«%s
| lines
| split column "»¦«" value description
| each {|x| $x | update value $"`($x.value)`"}
| each {|x| $x | update value $"($x.value)"}
}
# FIXME: number-like
def "nu-complete git branches" [] {
git branch
| lines
| filter {|x| not ($x | str starts-with '*')}
| each {|x| $"'($x|str trim)'"}
| each {|x| $"($x|str trim)"}
}
export def gl [
@ -181,7 +179,6 @@ export alias gapt = git apply --3way
export alias gb = git branch
export alias gba = git branch -a
export alias gbd = git branch -d
export alias gbda = 'git branch --no-color --merged | command grep -vE "^(\+|\*|\s*($(git_main_branch)|development|develop|devel|dev)\s*$)" | command xargs -n 1 git branch -d'
export alias gbl = git blame -b -w
export alias gbnm = git branch --no-merged
export alias gbr = git branch --remote