This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run in elevated PowerShell session | |
| [Environment]::SetEnvironmentVariable('VariableName', 'Value', 'Machine') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # YAML cheat sheet | |
| # Reference: https://www.youtube.com/watch?v=cdLNKUoMc6c | |
| # object | |
| person: | |
| # string value. single/double quotes | |
| # anchoring | |
| name: &name "daniel" # anchor name doesn't have to be the same as key name | |
| occupation: 'student' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 2-LINE PROMPT, WITH GIT BRANCH, eg: | |
| # user@hostname ~/working/dir (git_branch) | |
| # % | |
| export PROMPT="%n@%m %~ "$(git branch 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/')$'\n'"%# " |