Skip to content

Instantly share code, notes, and snippets.

@cutaway
Last active January 15, 2022 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cutaway/2fa107fc40d2227a8e2d4344c522d4f1 to your computer and use it in GitHub Desktop.
Save cutaway/2fa107fc40d2227a8e2d4344c522d4f1 to your computer and use it in GitHub Desktop.
###########################
# Bash ~/.bashrc
###########################
function CONPS() {
n=$1
export PS1='\n$n \D{%F %T}\n> '
}
alias consult00='CONPS Consult00; cd ~/Documents/consult00'
alias consult01='CONPS Consult01; cd ~/Documents/consult01'
alias consult01='CONPS Consult02; cd ~/Documents/consult02'
##########################
# ZSH - add aliases to ~/.zshrc
# Also comment out enable auto-suggestions to prevent displaying old commands
##########################
alias consult00="export PROMPT=$'%F{%(#.blue.green)}┌──CONSULT00 - %D %*\n└─%B%(#.%F{red}#.%F{blue}$)%b%F{reset} '"
alias consult01="export PROMPT=$'%F{%(#.blue.green)}┌──CONSULT01 - %D %*\n└─%B%(#.%F{red}#.%F{blue}$)%b%F{reset} '"
########################
# PowerShell - create profile then update with prompt
########################
if (!(Test-Path -Path <profile-name>)) {
New-Item -ItemType File -Path <profile-name> -Force
}
function prompt{"PS CONSULT00 [$(Get-Date)]> "}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment