aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm/tools
diff options
context:
space:
mode:
authorJesus <jesus.estupinan@pragma.com.co>2022-07-11 09:37:25 +0800
committerJesus <jesus.estupinan@pragma.com.co>2022-07-11 09:38:02 +0800
commit3be259f71ff1a20b9cc66c2c2907cae1c60437db (patch)
tree7f17281441b0ba72ab46f9e10ffdae6c24dfb74d /hyperterm/tools
parent71434689f06f2031edf38dbdd474a5b68a90c6a7 (diff)
downloadhyperterm-3be259f71ff1a20b9cc66c2c2907cae1c60437db.tar.lz
hyperterm-3be259f71ff1a20b9cc66c2c2907cae1c60437db.tar.xz
hyperterm-3be259f71ff1a20b9cc66c2c2907cae1c60437db.zip
prepare re-compatibility with another OS unix-like
Diffstat (limited to 'hyperterm/tools')
-rw-r--r--hyperterm/tools/aliases.sh6
-rw-r--r--hyperterm/tools/sysinfo.sh4
2 files changed, 5 insertions, 5 deletions
diff --git a/hyperterm/tools/aliases.sh b/hyperterm/tools/aliases.sh
index 5493a6f..485039f 100644
--- a/hyperterm/tools/aliases.sh
+++ b/hyperterm/tools/aliases.sh
@@ -5,8 +5,8 @@ alias df='df -h' # human-readable sizes
alias ep='emacs PKGBUILD'
alias free='free -hm' # show sizes in humans format
alias grep='grep --color=tty -d skip'
-alias la='ls -la --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
-alias ll='ls -l --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
-alias ls='ls --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
+alias la='ls -la --color=auto -F'
+alias ll='ls -l --color=auto -F'
+alias ls='ls --color=auto -F'
alias np='nano PKGBUILD'
alias pastebin='curl -X POST https://bpa.st/curl -F "raw=<-"'
diff --git a/hyperterm/tools/sysinfo.sh b/hyperterm/tools/sysinfo.sh
index 6d89bcd..2af9a5c 100644
--- a/hyperterm/tools/sysinfo.sh
+++ b/hyperterm/tools/sysinfo.sh
@@ -7,7 +7,7 @@ function ii() {
es)
printf '%s\e[1;36m%s\e[m\n' "Has iniciado sesión en " "$(hostname -f 2> /dev/null || hostname)"
printf '\n\e[1;32m%s\e[m\n%s\n' "Información adicional:" "$(uname -a)"
- printf '\n\e[1;32m%s\e[m\n%s\n' "Usuarios Conectados:" "$(who -u)"
+ printf '\n\e[1;32m%s\e[m\n%s\n' "Usuarios Conectados:" "$(who -u 2> /dev/null)"
printf '\n\e[1;32m%s\e[m\n%s\n' "Fecha actual:" "$(date)"
printf '\n\e[1;32m%s\e[m\n%s\n' "Estadísticas de la máquina:" "$(uptime)"
printf '\n\e[1;32m%s\e[m\n%s\n' "Estadísticas de la memoria:" "$(free)"
@@ -19,7 +19,7 @@ function ii() {
*)
printf '%s\e[1;36m%s\e[m\n' "You are logged on " "$(hostname -f 2> /dev/null || hostname)"
printf '\n\e[1;32m%s\e[m\n%s\n' "Additionnal information:" "$(uname -a)"
- printf '\n\e[1;32m%s\e[m\n%s\n' "Users logged:" "$(who -u)"
+ printf '\n\e[1;32m%s\e[m\n%s\n' "Users logged:" "$(who -u 2> /dev/null)"
printf '\n\e[1;32m%s\e[m\n%s\n' "Current date:" "$(date)"
printf '\n\e[1;32m%s\e[m\n%s\n' "Machine stats:" "$(uptime)"
printf '\n\e[1;32m%s\e[m\n%s\n' "Memory stats:" "$(free)"