This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
gcixels is like gci, but with sixels... | |
.DESCRIPTION | |
Shows thumbnails of images with titles, directly in terminal. | |
However, it's done with ImageMagick montage, so it's awfully slow. | |
Just sharing it for your inspiration. | |
.NOTES | |
Requires ImageMagick and a Sixel terminal (like Windows Terminal 1.22+ or WezTerm) | |
#> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.ComponentModel; | |
using System.IO; | |
using System.Management.Automation; | |
using Microsoft.PowerShell.Commands; | |
[EditorBrowsable(EditorBrowsableState.Never)] | |
public abstract class CmdletWithPathBase : PSCmdlet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class IndisposableStream : IO.Stream { | |
hidden [IO.Stream] $_inner | |
IndisposableStream([IO.Stream]$inner) { | |
$this._inner = $inner | |
} | |
# proxy (almost) everything back to the inner stream object | |
hidden [bool] get_CanRead() { return $this._inner.CanRead } | |
hidden [bool] get_CanWrite() { return $this._inner.CanWrite } |
OlderNewer