This file contains 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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// Choose either "stable" for receiving highly polished, | |
// or "canary" for less polished but more frequent updates | |
updateChannel: 'stable', |
This file contains 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
function fish_prompt --description 'Write out the prompt' | |
set -l color_cwd | |
set -l suffix | |
switch "$USER" | |
case root toor | |
if set -q fish_color_cwd_root | |
set color_cwd $fish_color_cwd_root | |
else | |
set color_cwd $fish_color_cwd | |
end |
This file contains 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
function pbcopy --description 'alias pbcopy /mnt/c/windows/system32/clip.exe' | |
/mnt/c/windows/system32/clip.exe $argv; | |
end |
This file contains 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
dotnet new sln -o DotnetCoreProj | |
cd DotnetCoreProj | |
dotnet new classlib -lang 'F#' -o src/MyPSModule | |
dotnet sln add src/MyPSModule/MyPSModule.fsproj | |
cd src/MyPSModule | |
dotnet add package PowerShellStandard.Library | |
@' | |
namespace MyPSModule | |
open System.Management.Automation |
This file contains 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
namespace MyPSModule | |
open System.Management.Automation | |
[<Cmdlet("Get", "Foo")>] | |
type GetFooCommand () = | |
inherit PSCmdlet () | |
[<Parameter>] | |
member val Name : string = "" with get, set |
This file contains 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.Management.Automation; | |
namespace MyPSModule | |
{ | |
[Cmdlet("Get", "Foo")] | |
public class GetFooCommand : PSCmdlet | |
{ | |
[Parameter] | |
public string Name { get; set; } = string.Empty; |