all repos

dotfiles @ 2604920c9710eaca1bb4167a9cb372da61dabda8

my dotfiles

script/mfet.sh (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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}"