From: Antonio Ospite Date: Tue, 22 Jan 2019 14:44:06 +0000 (+0100) Subject: Initial import X-Git-Url: https://git.ao2.it/config/sh.git/commitdiff_plain/ddd368d898a93a663e5db0761d1fbf3d40cd3be4?ds=inline Initial import --- ddd368d898a93a663e5db0761d1fbf3d40cd3be4 diff --git a/.profile b/.profile new file mode 100644 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 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 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.