mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-05-08 06:41:42 +01: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:
@@ -0,0 +1,12 @@
|
||||
# An attempt at trying to put ls into a paging mode
|
||||
export def ls-less [
|
||||
--dir(-d):any # The directory you want to list
|
||||
] {
|
||||
let is_empty = ($dir | is-empty)
|
||||
if $is_empty {
|
||||
nu -c 'ls' | less -r
|
||||
} else {
|
||||
let command = $"ls ($dir)"
|
||||
nu -c $command | less -r
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user