elvish_config/aliases/ls.elv

27 lines
749 B
Plaintext
Raw Normal View History

2021-12-11 21:09:02 +00:00
fn -ls {|@argv|
e:ls -N --color=auto --group-directories-first --ignore=lost+found '--time-style=+"%Y.%m.%d %H:%M"' --indicator-style=classify $@argv
}
2021-12-11 21:09:02 +00:00
fn -go-ls {|@argv|
e:go-ls --group-directories-first -T '+%Y.%m.%d %H:%M' --git $@argv
}
fn -exa {|@argv|
e:exa --color auto --git --icons --group-directories-first $@argv
}
fn -exal {|@argv|
-exa -lghH@ --time-style long-iso $@argv
}
var cmd = $-exa~
var cmdl = $-exal~
2021-12-11 21:09:02 +00:00
edit:add-var ls~ {|@argv| $cmd $@argv }
#edit:add-var la~ {|@argv| $cmd -a $@argv }
#edit:add-var ll~ {|@argv| $cmd -lh $@argv }
#edit:add-var lla~ {|@argv| $cmd -lha $@argv }
edit:add-var la~ {|@argv| $cmd -aa $@argv }
edit:add-var ll~ {|@argv| $cmdl -l $@argv }
edit:add-var lla~ {|@argv| $cmdl -aa $@argv }