From 7d54f1fb11da5e933ace782f74d46f9e42e67bc7 Mon Sep 17 00:00:00 2001 From: goodmind Date: Sun, 12 Mar 2017 12:43:57 +0500 Subject: [PATCH 1/3] use minimal racket --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6a104f4..9cf843a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ matrix: - os: osx before_install: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install racket; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install minimal-racket; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git clone https://github.com/greghendershott/travis-racket.git; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cat travis-racket/install-racket.sh | bash; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH="${RACKET_DIR}/bin:${PATH}"; fi From fac48ba9d1bb698902206c9dfb943e75da466929 Mon Sep 17 00:00:00 2001 From: goodmind Date: Sun, 12 Mar 2017 12:44:00 +0500 Subject: [PATCH 2/3] switch kernel with os P.S. linux version temporarily will have Linux as OS --- infornography-macos.rkt | 15 ++++++++++----- infornography.rkt | 10 +++++----- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/infornography-macos.rkt b/infornography-macos.rkt index 8f12b63..c120f8a 100755 --- a/infornography-macos.rkt +++ b/infornography-macos.rkt @@ -48,18 +48,23 @@ (number->string total) "M") ""))) -(define (os) +(define (kernel) (string-trim (-> "uname -s"))) +(define (os) + (let* ((os-name (-> "sw_vers -productName")) + (os-version (-> "sw_vers -productVersion"))) + (string-join (map string-trim (list os-name os-version))))) + (define data (list " ....... ............... " ($ USER) "@" (hostname) " .................... Shell: " ($ SHELL) " ......................... Memory: " (memory) " - ........................... OS: " (os) " - ............................. Terminal: " ($ TERM) " - ............................... CPU: " (cpu) " - ..............x................ + ........................... Kernel: " (kernel) " + ............................. OS: " (os) " + ............................... Terminal: " ($ TERM) " + ..............x................ CPU: " (cpu) " ............xo@................ ...........xoo@xxx............. ........o@oxxoo@@@@@@x..xx..... diff --git a/infornography.rkt b/infornography.rkt index b50abd6..0313fd1 100755 --- a/infornography.rkt +++ b/infornography.rkt @@ -49,7 +49,7 @@ (number->string total) "M") ""))) -(define (os) +(define (kernel) (string-trim (-> "uname -s"))) (define data (list " @@ -57,10 +57,10 @@ ............... " ($ USER) "@" (hostname) " .................... Shell: " ($ SHELL) " ......................... Memory: " (memory) " - ........................... OS: " (os) " - ............................. Terminal: " ($ TERM) " - ............................... CPU: " (cpu) " - ..............x................ + ........................... Kernel: " (kernel) " + ............................. OS: Linux + ............................... Terminal: " ($ TERM) " + ..............x................ CPU: " (cpu) " ............xo@................ ...........xoo@xxx............. ........o@oxxoo@@@@@@x..xx..... From 3f89a0d6b3196da0f92e0309ab21c7e3a083d526 Mon Sep 17 00:00:00 2001 From: goodmind Date: Sun, 12 Mar 2017 13:12:09 +0500 Subject: [PATCH 3/3] Revert "use minimal racket" This reverts commit 7d54f1fb11da5e933ace782f74d46f9e42e67bc7. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9cf843a..6a104f4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ matrix: - os: osx before_install: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install minimal-racket; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install racket; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git clone https://github.com/greghendershott/travis-racket.git; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cat travis-racket/install-racket.sh | bash; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH="${RACKET_DIR}/bin:${PATH}"; fi