Skip to content

Instantly share code, notes, and snippets.

View pitchinnate's full-sized avatar

Nate pitchinnate

View GitHub Profile
@pitchinnate
pitchinnate / gist:890f5375f5e788f5a84b1b0bc399feab
Last active October 3, 2024 15:27
Powershell Starship update terminal title to directory and running command
# show directory as title, last 2 directories, can change by changing 2 to something else
function Invoke-Starship-PreCommand {
$current = ( $PWD -split '\\' | select -last 2 ) -join '\'
$host.ui.RawUI.WindowTitle = "$current"
}
# normal starship invoke
Invoke-Expression (&starship init powershell)
# this must be put in after the invoke of starship
@pitchinnate
pitchinnate / laravel_windows_environment.md
Last active June 24, 2019 10:33
Laravel Windows Environment Setup

Keybase proof

I hereby claim:

  • I am pitchinnate on github.
  • I am pitchinnate (https://keybase.io/pitchinnate) on keybase.
  • I have a public key whose fingerprint is 1FDF 5FCB 5E36 DC8E 06DB E177 5F28 10C7 7265 B554

To claim this, I am signing this object:

@pitchinnate
pitchinnate / file.rb
Created June 8, 2016 17:03
Ruby Warrior
class Player
@hitBackWall = false
def play_turn(warrior)
taking_damage = false
if @health.nil?
@health = warrior.health
end