mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-02-27 18:28:02 +00:00
Changed . token to _dot
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
This commit is contained in:
10
dot_config/nushell/nu_scripts/benchmarks/turtle.nu
Normal file
10
dot_config/nushell/nu_scripts/benchmarks/turtle.nu
Normal file
@@ -0,0 +1,10 @@
|
||||
# The infamous turtle benchmark
|
||||
def turtle [column: string] {
|
||||
wrap $column | table
|
||||
}
|
||||
|
||||
print $"Turtle 1 = ('turtle' | turtle '1' | str length)"
|
||||
print $"Turtle 2 = ('turtle' | turtle '1' | turtle '2' | str length)"
|
||||
print $"Turtle 3 = ('turtle' | turtle '1' | turtle '2' | turtle '3' | str length)"
|
||||
print $"Turtle 4 = ('turtle' | turtle '1' | turtle '2' | turtle '3' | turtle '4' | str length)"
|
||||
print $"Turtle 5 = ('turtle' | turtle '1' | turtle '2' | turtle '3' | turtle '4' | turtle '5' | str length)"
|
||||
Reference in New Issue
Block a user