Last active
January 15, 2022 21:41
-
-
Save cutaway/2fa107fc40d2227a8e2d4344c522d4f1 to your computer and use it in GitHub Desktop.
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
########################### | |
# 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