Results 1 to 9 of 9
  1. #1
    Silver Lounger wavy's Avatar
    Join Date
    Dec 2009
    Location
    ny
    Posts
    2,367
    Thanks
    233
    Thanked 147 Times in 136 Posts

    Might interest Powershell programmers

    https://mcpmag.com/articles/2015/09/...sreadline.aspx

    Enhance Your PowerShell Experience Using PSReadLine
    ::
    David

    Just because you don't know where you are going doesn't mean any road will get you there.

  2. #2
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,433
    Thanks
    371
    Thanked 1,456 Times in 1,325 Posts
    David,

    JoeP passed me a link to this earlier and for the life of me I can't get the thing to work in Win 8.1 Pro, PowerShell V4.

    The following command is in my PowerShell_profile.ps1 file:
    Code:
    Import-Module "G:\BEKDocs\WindowsPowerShell\Modules\PSReadLine-master\PSReadLine\PSReadline.psm1"
    The module is imported as shown here:
    PSWin-PSReadline.JPG

    But I get no Syntax coloring or anything else. Ideas?
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  3. #3
    Silver Lounger wavy's Avatar
    Join Date
    Dec 2009
    Location
    ny
    Posts
    2,367
    Thanks
    233
    Thanked 147 Times in 136 Posts
    Sorry RG

    The Powershell stuff is still ahead of me. I just saw it knew there were folk here interested in Powershell and seemed like a useful tool.
    David

    Just because you don't know where you are going doesn't mean any road will get you there.

  4. #4
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,433
    Thanks
    371
    Thanked 1,456 Times in 1,325 Posts
    David,

    Move post on Revo to Maintenance as it didn't belong here. Hijacking your own post shame on you
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  5. #5
    Silver Lounger wavy's Avatar
    Join Date
    Dec 2009
    Location
    ny
    Posts
    2,367
    Thanks
    233
    Thanked 147 Times in 136 Posts
    I am shameless.
    Thanks! I was thinking of posting there but my fingers were ahead of my brain,,,

    David

    Just because you don't know where you are going doesn't mean any road will get you there.

  6. #6
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,572
    Thanks
    5
    Thanked 1,057 Times in 926 Posts
    Bruce,

    Did you see PSReadLine readme? Also has links on that page to two other articles that may be of interest.

    Joe

  7. #7
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,433
    Thanks
    371
    Thanked 1,456 Times in 1,325 Posts
    Joe,

    Yes, I also worked through the help file w/o success. It does work just fine on Win 10 though since you don't have to do a manual install.
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  8. #8
    Lounger
    Join Date
    Dec 2009
    Location
    Gillingham, Dorset, UK
    Posts
    30
    Thanks
    0
    Thanked 13 Times in 11 Posts
    RG,

    The file that you need is the .zip file mentioned in the Readme ( here is a link to it https://github.com/lzybkr/PSReadLine...PSReadline.zip ), not the PsReadline-master.zip from the main page.

    Also, you should import the module by pointing to the PSReadLine path, not the .psm1 file. e.g. Import-Module C:\PowerShell\Modules\PSReadLine

    Good luck
    Last edited by Cliff.H; 2015-09-09 at 07:56.

  9. #9
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,433
    Thanks
    371
    Thanked 1,456 Times in 1,325 Posts
    Cliff,

    Well I got it done but it wasn't easy! Thanks for the link to the proper download file.

    First attempt failed with:
    PS-NotSignedError.JPG
    I understood this as I have my ExecutionPolicy set to RemoteSigned. Edited each of the .ps* files (add space, delete space, save) which fixed that problem.

    Second attempt failed with:
    PS-DependencyNotSupported.JPG
    This was a head banger and cause for a little googling. Turns out I needed to get into the .dll's properties and UNBLOCK it. Done!

    Now all works as it should.

    Thanks again for all your help on my PS learning journey!

    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •