autoload -Uz compinit && compinit
function parse_git_branch() {
git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p'
}
COLOR_GIT=$'%F{39}'
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
# Command for terminating process on a port number | |
# $ kill_on_port <port_number> | |
function kill_on_port() { | |
if [ $# -eq 0 ] | |
then | |
echo "Please provide a port number" | |
return | |
fi | |
if [ -z "$1" ] |
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Confirm
PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force
Add-PoshGitToProfile -AllHosts
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
[alias] | |
st = status | |
[push] | |
autosetupremote = true | |
# Fixes contrasts issues on Powershell terminals with blue background | |
[color "status"] | |
changed = red bold | |
untracked = red bold | |
added = green bold |