STEP TWO FOR POWERSHELL - POSH-GIT AND OH-MY-POSH

Per these directions, install Posh-Git and Oh-My-Posh. This also assumes you've installed Git for Windows.

Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser

Run these commands from PowerShell or PowerShell Core. I recommend PowerShell 6.2.3 or above. You can also use PowerShell on Linux too, so be aware. When you run Install-Module for the first time you'll get a warning that you're downloading and installing stuff from the internet so follow the prompts appropriately.

Also get PSReadline if you're on PowerShell Core:

Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck

Then run "notepad $PROFILE" and add these lines to the end:

Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox

Now that word Paradox there is optional. It's actually the name of a theme and you can (and should!) pick the theme that makes you happy and use that theme's name here. I like Agnoster, Paradox, or Fish, myself. Read more over here. https://github.com/JanDeDobbeleer/oh-my-posh

STEP TWO FOR UBUNTU/WSL

There's a number of choices for Powerline or Powerline-like prompts from Ubuntu. I like Powerline-Go for it's easy defaults.

I just installed Go, then installed powerline-go with go get.

sudo apt install golang-go
go get -u github.com/justjanne/powerline-go

Add this to your ~/.bashrc. You may already have a GOPATH so be aware.

GOPATH=$HOME/go
function _update_ps1() {
PS1="$($GOPATH/bin/powerline-go -error $?)"
}
if [ "$TERM" != "linux" ] && [ -f "$GOPATH/bin/powerline-go" ]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi

GOTCHA: If you are using WSL2, it'll be lightning fast with git prompts if your source code is in your Ubuntu/Linux mount, somewhere under ~/. However, if your source is under /mnt/c or /mnt anywhere, the git calls being made to populate the prompt are super slow. Be warned. Do your Linux source code/git work in the Linux filesystem for speed until WSL2 gets the file system faster under /mnt.

_downloadfiles_wallpapers_1280_1024_samantha_south_actress_7841.jpg

 

Building a Blog Using ASP.NET Core

I’ve been interested in writing my own blogging engine for a while, and it’s probably not that uncommon amongst developers. Anyway, I’m looking around for inspiration so that I don’t have to reinvent the wheel and start from zero. This blog post contains what I’ve found so far when it comes to building a blog using ASP.NET Core.

WilderBlog – An ASP.NET Core blog built by Shawn Wildermuth

This is the blog that Shawn is currently using himself on his own website. It’s built using Angular 2 and ASP.NET Core, as well as other technologies related to the new ASP.NET.

The source code is available here on GitHub:

https://github.com/shawnwildermuth/wilderblog

Shawn also wrote a blog post about the project:

https://wildermuth.com/2016/04/14/Welcome-to-the-New-Wildermuth-com

Naif.blog – An ASP.NET Core blog being built by Charles Nurse

Charles Nurse from DNN Corp (DotNetNuke) is building an ASP.NET Core blog. The blog is still a work in progress, but you can follow along on his blog, and on the project’s GitHub page.

The project’s GitHub page

https://github.com/cnurse/Naif.Blog

Naif.Blog – A new ASP.NET Core Blog

http://www.charlesnurse.com/Blog/Post/1586/Naif-Blog-A-new-ASP-NET-Core-Blog

Naif.Blog: 0. Setting the Stage

http://www.charlesnurse.com/Blog/Post/1587/Naif-Blog-0-Setting-the-Stage

Naif.Blog: 1. In ASP.NET Core Everything is Injected

http://www.charlesnurse.com/Blog/Post/1588/Naif-Blog-1-In-ASP-NET-Core-Everything-is-Injected

Naif.Blog: 2. Creating a WebAPI service to support the MetaWeblogAPI

http://www.charlesnurse.com/Blog/Post/1589/Naif-Blog-2-Creating-a-WebAPI-service-to-support-the-MetaWeblogAPI

Naif.Blog: 3. Adding Theming

http://www.charlesnurse.com/Blog/Post/1590/Naif-Blog-3-Adding-Theming

Naif.Blog: 4. View Components

http://www.charlesnurse.com/Blog/Post/1591/Naif-Blog-4-View-Components

Naif.Blog: 5. ASP.NET Core 1.0 RTM

http://www.charlesnurse.com/Blog/Post/1592/Naif-Blog-5-ASP-NET-Core-1-0-RTM

Piranha CMS – An ASP.NET MVC blog being rewritten for ASP.NET Core

image_e2447ddd-416e-4036-9584-e728455e6d9d.png

 

Comments

Be the first to post a comment

Post a comment