Compare commits
2 commits
89b9edeff7
...
2f37ec5534
Author | SHA1 | Date | |
---|---|---|---|
2f37ec5534 | |||
4fcea2d589 |
3 changed files with 29 additions and 3 deletions
|
@ -76,9 +76,9 @@ function __rebuild_bashrcd() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function __bashrc_reload() {
|
function -reload-bashrc() {
|
||||||
export BASHRC_RELOAD_COUNTER=$((${BASHRC_RELOAD_COUNTER:-0}+1))
|
export BASHRC_RELOAD_COUNTER=\$((\${BASHRC_RELOAD_COUNTER:-0}+1))
|
||||||
if [[ $BASHRC_RELOAD_COUNTER -gt 1 ]]; then echo "reload count: $BASHRC_RELOAD_COUNTER"; fi
|
if [[ \$BASHRC_RELOAD_COUNTER -gt 1 ]]; then echo "reload count: \$BASHRC_RELOAD_COUNTER"; fi
|
||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
}
|
}
|
||||||
alias __bashrc_reload='-reload-bashrc'
|
alias __bashrc_reload='-reload-bashrc'
|
||||||
|
|
13
hostname/cinnabar.sh
Normal file
13
hostname/cinnabar.sh
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
COLOR_RST='\[\e[39m\]'
|
||||||
|
ULINE='\[\e[4m\]'
|
||||||
|
ULINE_RST='\[\e[24m\]'
|
||||||
|
|
||||||
|
COLOR_NORM='\[\e[38;2;227;66;52m\]' # Cinnabar
|
||||||
|
alt_hostname="${COLOR_NORM}${ULINE}シンシャー${COLOR_RST}${ULINE_RST}"
|
||||||
|
|
||||||
|
export PS1="\[\e[01;32m\]\u\[\e[00m\]@\[\e[01;32m\]${alt_hostname}"
|
||||||
|
export PS1+="\[\e[01;34m\] \w \\$\[\e[00m\] "
|
||||||
|
|
||||||
|
unset $alt_hostname $COLOR_NORM $ULINE $ULINE_RST $COLOR_RST
|
13
hostname/jade.sh
Normal file
13
hostname/jade.sh
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
COLOR_RST='\[\e[39m\]'
|
||||||
|
ULINE='\[\e[4m\]'
|
||||||
|
ULINE_RST='\[\e[24m\]'
|
||||||
|
|
||||||
|
COLOR_NORM='\[\e[38;2;0;168;107m\]' # Jade
|
||||||
|
alt_hostname="${COLOR_NORM}${ULINE}ジェード${COLOR_RST}${ULINE_RST}"
|
||||||
|
|
||||||
|
export PS1="\[\e[01;32m\]\u\[\e[00m\]@\[\e[01;32m\]${alt_hostname}"
|
||||||
|
export PS1+="\[\e[01;34m\] \w \\$\[\e[00m\] "
|
||||||
|
|
||||||
|
unset $alt_hostname $COLOR_NORM $ULINE $ULINE_RST $COLOR_RST
|
Loading…
Add table
Add a link
Reference in a new issue