Initial import
authorAntonio Ospite <ao2@ao2.it>
Tue, 22 Jan 2019 14:44:06 +0000 (15:44 +0100)
committerAntonio Ospite <ao2@ao2.it>
Tue, 22 Jan 2019 14:47:48 +0000 (15:47 +0100)
.profile [new file with mode: 0644]
.shinit [new file with mode: 0644]
README [new file with mode: 0644]

diff --git a/.profile b/.profile
new file mode 100644 (file)
index 0000000..5be6a74
--- /dev/null
+++ b/.profile
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# Initialization file for every interactive posix shell,
+# especially useful for dash.
+ENV="${HOME}/.shinit"; export ENV
diff --git a/.shinit b/.shinit
new file mode 100644 (file)
index 0000000..c8e8b61
--- /dev/null
+++ b/.shinit
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+if [ "$(id -u)" -eq 0 ]; then
+  PS1='# '
+else
+  PS1='$ '
+fi
+
+alias ll='ls -al'
+alias l='ls -l'
diff --git a/README b/README
new file mode 100644 (file)
index 0000000..dde3247
--- /dev/null
+++ b/README
@@ -0,0 +1,5 @@
+Configuration files for any POSIX shell.
+
+Sometimes it is convenient to have some aliases also when using a minimalistic
+shell like dash, the provided .profile and .shinit files show a minimal setup
+for these cases.