Last active
October 27, 2023 14:17
-
-
Save peeweek/2656029084ae293d336709d35e80971b to your computer and use it in GitHub Desktop.
Bash stuff
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
# ----------------------------------------- | |
# PS1 Shells | |
# ----------------------------------------- | |
# Two-line monochrome | |
export PS1="╭[\@] [\u@\h] [\W]\n╰ $ " | |
# Single-line multicolor | |
export PS1="\[\033[38;5;231m\]\t\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;85m\]\u@\h\[$(tput sgr0)\]\[\033[38;5;15m\]:\[$(tput sgr0)\]\[\033[38;5;195m\][\w]\[$(tput sgr0)\]\[\033[38;5;17m\]:\[$(tput sgr0)\]\[\033[38;5;15m\]\[$(tput sgr0)\]" | |
# Two-line multicolor | |
export PS1='\[\e[38;5;39m\]╭\[\e[0m\][\[\e[38;5;155m\]\t\[\e[0m\]] [\[\e[38;5;221m\]\u\[\e[38;5;214m\]@\[\e[38;5;203m\]\h\[\e[0m\]] [\[\e[38;5;75m\]\w\[\e[0m\]]\n\[\e[38;5;39m\]╰╾\[\e[0m\] $' | |
# ------------------------------------------ | |
# Aliases and functions | |
# ------------------------------------------ | |
alias ll="ls -alh --group-directories-first" | |
alias rmtree="rm -rf" | |
# Functions | |
function mkcd() { | |
mkdir "$1" | |
cd "$1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment