-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathposh-eza.ps1
62 lines (60 loc) · 1.89 KB
/
posh-eza.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# eza
# ----------------------------------------------------------------------------------- #
if (!(Get-Command eza -ErrorAction SilentlyContinue)) { return }
function Invoke-Eza {
[alias('ls')]
param(
[Parameter(ValueFromRemainingArguments = $true)]
[string[]]$Path
)
eza.exe --icons --header --hyperlink --group --git -I='*NTUSER.DAT*|*ntuser.dat*' --group-directories-first @Path
}
function Invoke-EzaAll {
[alias('la')]
param(
[Parameter(ValueFromRemainingArguments = $true)]
[string[]]$Path
)
eza.exe --icons --header --hyperlink --group --git -I='*NTUSER.DAT*|*ntuser.dat*' --group-directories-first -al --time-style=relative --sort=modified @Path
}
function Invoke-EzaDir {
[alias('ld')]
param(
[Parameter(ValueFromRemainingArguments = $true)]
[string[]]$Path
)
eza.exe --icons --header --hyperlink --group --git -I='*NTUSER.DAT*|*ntuser.dat*' --group-directories-first -lDa --show-symlinks @Path
}
function Invoke-EzaFile {
[alias('lf')]
param(
[Parameter(ValueFromRemainingArguments = $true)]
[string[]]$Path
)
eza.exe --icons --header --hyperlink --group --git -I='*NTUSER.DAT*|*ntuser.dat*' --group-directories-first -lfa --show-symlinks @Path
}
function Invoke-EzaList {
[alias('ll')]
param(
[Parameter(ValueFromRemainingArguments = $true)]
[string[]]$Path
)
eza.exe --icons --header --hyperlink --group --git -I='*NTUSER.DAT*|*ntuser.dat*' --group-directories-first -lbhHigUmuSa @Path
}
function Invoke-EzaTtree {
[alias('lt')]
param(
[Parameter(ValueFromRemainingArguments = $true)]
[string[]]$Path
)
eza.exe --icons --header --hyperlink --group --git -I='*NTUSER.DAT*|*ntuser.dat*' --group-directories-first -lT @Path
}
function Invoke-EzaTree {
[alias('tree')]
param(
[Parameter(ValueFromRemainingArguments = $true)]
[string[]]$Path
)
eza.exe --icons --header --hyperlink --group --git -I='*NTUSER.DAT*|*ntuser.dat*' --group-directories-first --tree @Path
}