mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
Update
This commit is contained in:
parent
0d2b7d6ba3
commit
7cf1432163
50 changed files with 1576 additions and 977 deletions
23
script/mfet.sh
Normal file
23
script/mfet.sh
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#!/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