summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-22 12:30:39 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-22 12:30:39 +0200
commitb6a32e65cd1aba143ac78e7928c848479d3b6b98 (patch)
tree4c0d6ce0361265ee989fdc24622aa1315cef3ccb
parentNew script in progress to update FreeBSD things (diff)
downloaddotfiles-bsd-b6a32e65cd1aba143ac78e7928c848479d3b6b98.tar.gz
dotfiles-bsd-b6a32e65cd1aba143ac78e7928c848479d3b6b98.tar.bz2
dotfiles-bsd-b6a32e65cd1aba143ac78e7928c848479d3b6b98.tar.xz
dotfiles-bsd-b6a32e65cd1aba143ac78e7928c848479d3b6b98.tar.zst
dotfiles-bsd-b6a32e65cd1aba143ac78e7928c848479d3b6b98.zip
Upgrade in progress, added -l to ls alias
Diffstat (limited to '')
-rw-r--r--.config/zsh/alias.zsh2
-rwxr-xr-x.local/bin/system-upgrade20
2 files changed, 20 insertions, 2 deletions
diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh
index 18cc325..dd3c1af 100644
--- a/.config/zsh/alias.zsh
+++ b/.config/zsh/alias.zsh
@@ -1,4 +1,4 @@
-alias ls='ls -hGF'
+alias ls='ls -lhGF'
alias c='clear'
alias less='less --tabs 4'
alias bc='clear; bc -l'
diff --git a/.local/bin/system-upgrade b/.local/bin/system-upgrade
index b726f5b..3a53334 100755
--- a/.local/bin/system-upgrade
+++ b/.local/bin/system-upgrade
@@ -2,4 +2,22 @@
use warnings;
use strict;
-use constant LOG_FILE => "/var/log/system-upgrade.log";
+use constant LOG_FILE => '/var/log/system-upgrade.log';
+use constant {
+ DASH_PATH => '/usr/local/bin/dash',
+};
+
+sub shell {
+ system(
+ DASH_PATH,
+ '-c',
+ $_[0]
+ );
+}
+
+sub main {
+ shell("ls -l");
+ exit;
+}
+
+main();