Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # PS1="\w \n $ "
- function compile {
- # compiler flags
- # g++ -Wall -Wextra -Wshadow -D_GLIBCXX_ASSERTIONS -DDEBUG -ggdb3 -fmax-errors=2 -o $1{,.cpp}
- let="g++ -Wall -Wextra -std=c++17 -O2 -Wshadow -Wformat=2 -Wfloat-equal -Wconversion -Wlogical-op -Wshift-overflow=2 -Wduplicated-cond -Wcast-qual -Wcast-align -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_FORTIFY_SOURCE=2 -fsanitize=address -fsanitize=undefined -fno-sanitize-recover -fstack-protector -ggdb3 -fmax-errors=2"
- $let -o $1{,.cpp}
- }
- orange=$(tput setaf 166);
- yellow=$(tput setaf 228);
- green=$(tput setaf 71);
- white=$(tput setaf 15);
- bold=$(tput bold);
- reset=$(tput sgr0);
- PS1="\[${bold}\]\n";
- PS1+="\[${orange}\]\u"; #username
- PS1+="\[${white}\]@";
- PS1+="\[${yellow}\]\h"; #host
- PS1+="\[${white}\] in ";
- PS1+="\[${green}\]\w"; #working directory
- PS1+="\[${white}\]\n\$ \[${reset}\]";
- export PS1;
Add Comment
Please, Sign In to add comment