Compare commits
No commits in common. "15cd72d6373057b232e27e6a2795108d1161c18f" and "d74979269e2e33ce7afe02c4df27ef1ba59da099" have entirely different histories.
15cd72d637
...
d74979269e
7
bashrc
7
bashrc
@ -1,3 +1,4 @@
|
||||
#!/bin/bash
|
||||
# ~/.bashrc
|
||||
# byMasterKTO
|
||||
|
||||
@ -57,7 +58,7 @@ fi
|
||||
if [[ $system == "Linux" ]]; then
|
||||
case $(lsb_release -si) in
|
||||
# Arch family: light blue
|
||||
Arch | ManjaroLinux | Manjaro-ARM) COLOR=$C_BOLD$C_ARCH;;
|
||||
Arch | ManjaroLinux) COLOR=$C_BOLD$C_ARCH;;
|
||||
# Debian family: orange
|
||||
Debian | Ubuntu | Linuxmint | Neon | Raspbian) COLOR=$C_BOLD$C_DEB;;
|
||||
# RedHat family: blue
|
||||
@ -89,8 +90,8 @@ if [[ $system == "Linux" ]]; then
|
||||
fi
|
||||
|
||||
# hostname
|
||||
# if hostname has 5 parts then host=.secondpart
|
||||
if [[ $(hostname | grep -o "\." | wc -l) -eq 4 ]]; then
|
||||
# if hostname has 4 parts then host=.secondpart
|
||||
if [[ $(hostname | grep -o "\." | wc -l) -eq 3 ]]; then
|
||||
host='.'$(hostname | cut -f 2 -d '.')
|
||||
fi
|
||||
hn="$COLOR\h$host$virt$C_RESET"
|
||||
|
Loading…
Reference in New Issue
Block a user