mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
🔥 Update
This commit is contained in:
parent
d5685185d7
commit
4f3a929be0
4 changed files with 19 additions and 118 deletions
|
|
@ -1,35 +0,0 @@
|
|||
host="$(hostname)"
|
||||
os='Manjaro'
|
||||
kernel="$(uname -r)"
|
||||
uptime="$(uptime -p | sed 's/up //')"
|
||||
packages="$(pacman -Q | wc -l)"
|
||||
shell="$(basename "$SHELL")"
|
||||
ui="$(basename ${XDG_CURRENT_DESKTOP})"
|
||||
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
fi
|
||||
|
||||
lc="${reset}${bold}${green}"
|
||||
nc="${reset}${bold}${green}"
|
||||
ic="${reset}"
|
||||
c0="${reset}${green}"
|
||||
|
||||
cat <<EOF
|
||||
${c0} ||||||||| |||| ${nc}${USER}${ic}@${nc}${host}${reset}
|
||||
${c0} ||||||||| |||| ${lc}OS: ${ic}${os}${reset}
|
||||
${c0} |||| |||| ${lc}KERNEL: ${ic}${kernel}${reset}
|
||||
${c0} |||| |||| |||| ${lc}PACKAGES: ${ic}${packages}${reset}
|
||||
${c0} |||| |||| |||| ${lc}SHELL: ${ic}${shell}${reset}
|
||||
${c0} |||| |||| |||| ${lc}UPTIME: ${ic}${uptime}${reset}
|
||||
${c0} |||| |||| |||| ${lc}DE/WM: ${ic}${ui}${reset}
|
||||
EOF
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
#!/bin/sh
|
||||
#### Info ####
|
||||
shell=$(echo $SHELL | sed -e 's|/bin/||g')
|
||||
os=$(lsb_release -sdr | sed -e 's|"||g')
|
||||
host=$(hostname)
|
||||
user=$(echo $USER)
|
||||
kernal=$(uname -r)
|
||||
editor=$(echo $EDITOR)
|
||||
uptime=$(uptime -p|sed 's|up ||g'|sed 's|,||g')
|
||||
|
||||
### Colors ###
|
||||
rest="\e[0m"
|
||||
bold="\e[1m"
|
||||
blue="\e[34m"
|
||||
grey="\e[90m"
|
||||
|
||||
#### Code ####
|
||||
echo -e " ${blue}${user}${rest}${grey}@${blue}${host}"
|
||||
echo -e " ${blue} os ${rest}${grey}~ ${rest}${os}"
|
||||
echo -e " ${blue} sh ${rest}${grey}~ ${rest}${shell}"
|
||||
echo -e " ${blue}kernal ${rest}${grey}~ ${rest}${kernal}"
|
||||
echo -e " ${blue}editor ${rest}${grey}~ ${rest}${editor}"
|
||||
echo -e " ${blue}uptime ${rest}${grey}~ ${rest}${uptime}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue