Tuesday, January 23, 2018

Showing Bible Verse when PowerShell is Opened

Using the code created in a previous post in our PowerShell profile, we can have PowerShell display a random Bible quote whenever it is opened.

Steps

  1. Download PSBible-NET.psm1 from Github.
  2. Place the file in %UserProfile%\Documents\WindowsPowerShell\Modules.  You may need to create the folders if they do not already exist.
  3. Create "profile.ps1" in %UserProfile%\Documents\WindowsPowerShell\ and put this inside:

Import-Module "C:\Users\YOUR-USERNAME\Documents\WindowsPowerShell\Modules\PSBible-NET.psm1"

Get-BibleVerse -Random



Every time PowerShell is opened on your machine it will show a random Bible quote!


Keep in mind that the more commands you place inside the profile.ps1, the longer it will take to open PowerShell.

No comments:

Post a Comment