A lot of changes

+ PowerLine prompt now shows degraded systemctl state (When Apllicable)
+ Get-PlexInfo notifies if PLEX creds are needed and are missing
+ XDG env are setup if missing on linux
+ vi/vim command will launch editor, but prefer vi/vim/nvim if exists
+ new chezmoi package: auto loading completion
+ new flatpak package: List and Kill commands added
+ new zfs package: zls command added
This commit is contained in:
Gal on Sygin 2022-01-29 17:48:01 -05:00
parent cdabbc7858
commit 4bf2ff19f4
15 changed files with 188 additions and 42 deletions

19
zfs/_.package.json Normal file
View file

@ -0,0 +1,19 @@
{
"package": {
"Condition": [
{
"custom": null,
"System": null,
"Hostname": null,
"Username": null,
"CmdletExists": null,
"ModuleExists": null,
"AppExeExists": [
"zfs"
],
"Logic": 0
}
],
"Name": "zfs"
}
}

11
zfs/zls.ps1 Normal file
View file

@ -0,0 +1,11 @@
$local:prev = "";
zfs list -o name,used,avail,refer,canmount,mounted,mountpoint $args |
grep -v 'docker/' |
ForEach-Object {
$local:tmpPrev = $_ -replace '^(\w+(\W\w+(\W\w+)?)?).*','$1';
if( $tmpPrev -notmatch "^$prev" -and $prev -notin ('','NAME') ) {
'-----------------'
};
$prev = $tmpPrev;
$_
}