Last active
August 12, 2022 13:56
-
-
Save AnthonyDeplanque/e9942ef4b16d3529c8fc0979c3c1876a to your computer and use it in GitHub Desktop.
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
First, you have to install these two fonts packs | |
https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/Agave.zip | |
https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/Hack/Regular/complete | |
and configure these software to use these fonts | |
for linux (vs code & git bash) or windows git-bash : agave nf | |
for windows vs code : hack nf | |
/// **************************************** /// | |
now put these lines in ~/.bashrc | |
source ~/.git-prompt.sh | |
_ps1_symbol='\[\e[38;2;0;255;0;48;2;70;70;70m\] \$ \[\e[0m\]\[\e[38;2;70;70;70m\]\[\e[0m\]' | |
export PS1='\[\e]0;\w\a\]\[\e[38;2;40;40;40;48;2;153;204;255m\] \u\[\e[38;2;255;57;57;48;2;153;204;255m\] \[\e[0m\]\[\e[38;2;40;40;40;48;2;153;204;255m\]\h \[\e[0m\]\[\e[38;2;153;204;255;48;2;255;150;50m\]\[\e[0m\]\[\e[38;2;40;40;40;48;2;255;150;50m\] \W \[\e[0m\]\[\e[38;2;255;150;50;48;2;70;70;70m\]\[\e[0m\]$(__git_ps1 "\[\e[38;2;0;255;0;48;2;70;70;70m\] %s \[\e[0m\]\[\e[38;2;0;0;0;48;2;70;70;70m\] \[\e[0m\]")'"${_ps1_symbol}"' ' | |
unset _ps1_symbol | |
/// **************************************** /// | |
and now put these lines in setting.json for the vscode terminal color configuration | |
"workbench.colorCustomizations": { | |
"terminal.background":"#222222", | |
"terminal.foreground":"#dddad6", | |
"terminal.ansiBlack":"#000000", | |
"terminal.ansiBrightBlack":"#555753", | |
"terminal.ansiBrightBlue":"#32afff", | |
"terminal.ansiBrightCyan":"#34e2e2", | |
"terminal.ansiBrightGreen":"#8ae234", | |
"terminal.ansiBrightMagenta":"#ad7fa8", | |
"terminal.ansiBrightRed":"#ef2929", | |
"terminal.ansiBrightWhite":"#FFFFFF", | |
"terminal.ansiBrightYellow":"#fce94f", | |
"terminal.ansiBlue":"#729fcf", | |
"terminal.ansiCyan":"#06989a", | |
"terminal.ansiGreen":"#4e9a06", | |
"terminal.ansiMagenta":"#75507b", | |
"terminal.ansiRed":"#cc0000", | |
"terminal.ansiWhite":"#d3d7cf", | |
"terminal.ansiYellow":"#fc8905" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment