AutoYADM commit: 2025-03-28 18:45:08
This commit is contained in:
parent
393973db39
commit
4606237776
78 changed files with 2856 additions and 1 deletions
12
.config/fish/functions/__gitnow_increment_number.fish
Normal file
12
.config/fish/functions/__gitnow_increment_number.fish
Normal file
|
@ -0,0 +1,12 @@
|
|||
# GitNow — Speed up your Git workflow. 🐠
|
||||
# https://github.com/joseluisq/gitnow
|
||||
|
||||
function __gitnow_increment_number -a strv
|
||||
command echo $strv | LC_ALL=C command awk '
|
||||
function increment(val) {
|
||||
if (val ~ /[0-9]+/) { return val + 1 }
|
||||
return val
|
||||
}
|
||||
{ print increment($0) }
|
||||
' 2>/dev/null
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue