Skip to content

Instantly share code, notes, and snippets.

View LxEmily's full-sized avatar
🌱
palms sweaty from writing spaghetti

Emily LxEmily

🌱
palms sweaty from writing spaghetti
View GitHub Profile
We couldn’t find that file to show.
@LxEmily
LxEmily / personal.psm1
Created October 21, 2020 13:07
oh-my-posh Powershell prompt theme
#requires -Version 2 -Modules posh-git
function Write-Theme {
param(
[bool]
$lastCommandFailed,
[string]
$with
)
@LxEmily
LxEmily / vsCodeOpen.reg
Created October 21, 2020 12:56
Adding VS Code to context menu without reinstalling
Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]
@="Edit with VS Code"
"Icon"="C:\\Program Files\\Microsoft VS Code\\Code.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%1\""
; This will make it appear when you right click ON a folder
@LxEmily
LxEmily / .bash_prompt
Created February 1, 2020 23:13
Customizing bash prompt, work in progress
#!/bin/bash
#
# Sets bash prompt to
# [date time] directory (git)
# With color scheme from VSC Dracula
# https://github.com/dracula/visual-studio-code/blob/master/src/dracula.yml
# Based on work from Scott Woods
# https://gist.github.com/woods/31967
# Returns 255 color from hex argument