summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-06-23 01:51:49 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-06-23 01:51:49 +0200
commitae36f2fad5d60aa4e18c769fedb4d159c23ef6b4 (patch)
tree7a5c90f3d5eacf9086dd3f169b624781bda4ac6c
parentb561c889bb956d417bec6acb07ed57aa6d958653 (diff)
downloadbin-ae36f2fad5d60aa4e18c769fedb4d159c23ef6b4.tar.gz
bin-ae36f2fad5d60aa4e18c769fedb4d159c23ef6b4.tar.xz
fix vimpager; change sysinfo
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xsysinfo18
-rwxr-xr-xvimpager2
2 files changed, 15 insertions, 5 deletions
diff --git a/sysinfo b/sysinfo
index bc087c1..8a7500a 100755
--- a/sysinfo
+++ b/sysinfo
@@ -1,6 +1,16 @@
-#!/bin/sh
+#!/bin/zsh
+BLUE="\e[1;34m"
+NC="\e[0m"
+
clear
cat /etc/motd
-inxi -CGINSx
-echo -en "${BLUE}Uptime:$NC" ; uptime
-pydf
+echo
+echo -e "${BLUE}Host:${NC} $(hostname)"
+echo -e "${BLUE}Uptime:$NC ${${$(uptime)%%,*}##*up }, ${$(</proc/loadavg)% *}"
+
+if [ -x /usr/bin/fortune ]; then
+ echo
+ /usr/bin/fortune -s
+ echo
+fi
+
diff --git a/vimpager b/vimpager
index 554c60f..1fe5328 100755
--- a/vimpager
+++ b/vimpager
@@ -23,7 +23,7 @@ less_vim() {
-c 'set scrolloff=999' \
-c 'runtime! macros/less.vim' \
-c 'set foldlevel=999' \
- -c 'set mouse=h' \
+ -c 'set mouse=a' \
-c 'set nonu' \
-c 'nmap <ESC>u :nohlsearch<cr>' \
"${@:--}"