This file contains 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
# Resources: | |
# https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/invoke-history?view=powershell-7.3 | |
# Reload profile | |
# . profile.ps1 | |
Set-Alias -Name ?? -Value Invoke-History |
This file contains 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
#!/bin/bash | |
# Inspired by: | |
# https://opensource.com/article/20/4/linux-astronomy | |
# https://askubuntu.com/a/207435 | |
# Prerequirements: You must install `xcalib` command by typing: sudo apt install xcalib | |
case $1 in | |
on) | |
# adjust color, gamma, brightness, contrast |
This file contains 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
# inspired by: | |
# https://medium.com/pareture/simplest-zsh-prompt-configs-for-git-branch-name-3d01602a6f33 | |
# https://medium.com/dev-genius/customize-the-macos-terminal-zsh-4cb387e4f447 | |
# http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html#Prompt-Expansion | |
# Find and set branch name var if in git repository. | |
function git_branch_name() | |
{ | |
branch=$(git symbolic-ref HEAD 2> /dev/null | awk 'BEGIN{FS="/"} {print $NF}') |