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
| Ok |
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
| <!DOCTYPE html> | |
| <html lang="no"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Luddipudde</title> | |
| </head> | |
| <body> | |
| <span id="LatestNews" class="semi-bold">Loading latest news...</span> | |
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
| function color_my_prompt { | |
| local __user_and_host="\[$(tput bold)\]\[\033[38;5;198m\]\u\[$(tput sgr0)\]\[$(tput sgr0)\]\[\033[38;5;255m\] at \[$(tput bold)\]\[$(tput sgr0)\]\[\033[38;5;214m\]\h\[$(tput sgr0)\]" | |
| local __cur_location="\[\033[38;5;255m\]in \[$(tput bold)\]\[$(tput sgr0)\]\[\033[38;5;154m\]\w\[$(tput sgr0)\]\[$(tput sgr0)\]\[\033[38;5;15m\]" | |
| local __git_branch_color="\[$(tput sgr0)\]\[\033[38;5;247m\]" | |
| local __git_branch='`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`' | |
| local __prompt_tail="\n\[$(tput sgr0)\]\[\033[38;5;255m\]\\$\[$(tput sgr0)\]" | |
| local __last_color="\[\033[00m\]" | |
| export PS1="$__user_and_host $__cur_location $__git_branch_color$__git_branch$__prompt_tail$__last_color " | |
| } | |
| color_my_prompt |
NewerOlder