fancy output using less
This commit is contained in:
parent
048e341fe4
commit
07748f7fab
1 changed files with 6 additions and 2 deletions
8
setup
8
setup
|
@ -1,11 +1,14 @@
|
|||
#!/bin/bash
|
||||
clear
|
||||
exec > >(less +F --header 7) 2>&1
|
||||
trap 'exec >&- 2>&-; wait' EXIT
|
||||
|
||||
curl https://doordesk.net/doors
|
||||
curl -s https://doordesk.net/doors
|
||||
echo "-------------------------------------------------------"
|
||||
|
||||
. /etc/os-release
|
||||
OS=$NAME
|
||||
echo -e "\nDetected OS as $OS"
|
||||
echo -e "Detected OS as $OS"
|
||||
|
||||
if [[ $OS == *Arch* ]]; then
|
||||
cd &&
|
||||
|
@ -54,3 +57,4 @@ echo -e "\nInstalling Configs..." &&
|
|||
cp -sbv $HOME/.config/shell/profile $HOME/.zprofile &&
|
||||
|
||||
echo -e "\nDone!"
|
||||
killall -s SIGINT less
|
||||
|
|
Loading…
Add table
Reference in a new issue