mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-02-24 00:48:06 +00:00
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
25 lines
364 B
Nu
25 lines
364 B
Nu
# This checks the -f switch to see if it was supplied
|
|
# and tests the new $nothing variable
|
|
def nada [
|
|
flat?
|
|
] {
|
|
if $flat == null {
|
|
true
|
|
} else {
|
|
false
|
|
}
|
|
}
|
|
|
|
# This shows an alternate way to check for nothing
|
|
def nada2 [
|
|
flat?
|
|
] {
|
|
let flat = ($flat | is-empty)
|
|
|
|
if $flat {
|
|
true
|
|
} else {
|
|
false
|
|
}
|
|
}
|