diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2023-03-20 16:49:10 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-22 09:46:16 +0100 |
commit | d997b794fad3c93508985f40a135f2a2b6deb24b (patch) | |
tree | 60d5f80d120821660a8c7fd1412f9760e6554fc1 /Base/etc | |
parent | 832478ad0c1615fa3713e7839f7648df0b44fbee (diff) | |
download | serenity-d997b794fad3c93508985f40a135f2a2b6deb24b.zip |
Shell: Load a different rc file when in POSIX mode
Diffstat (limited to 'Base/etc')
-rw-r--r-- | Base/etc/posixshrc | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Base/etc/posixshrc b/Base/etc/posixshrc new file mode 100644 index 0000000000..ce4c9e8b19 --- /dev/null +++ b/Base/etc/posixshrc @@ -0,0 +1,39 @@ +#!sh + +alias fm=FileManager +alias mag=Magnifier +alias sh=Shell +alias tb=Taskbar +alias te=TextEditor +alias he=HexEditor +alias pp=PixelPaint +alias iv=ImageViewer +alias pi=Piano +alias calc=Calculator +alias calendar=Calendar +alias ins=Inspector +alias sp=SoundPlayer +alias help=Help +alias br=Browser +alias hs=HackStudio +alias sdb=Debugger +alias sm=SystemMonitor +alias pv=Profiler +alias ws=WebServer +alias ue=UserspaceEmulator +alias fe=FontEditor +alias ss=Spreadsheet +alias vp=VideoPlayer + +alias ll='ls -l' + +if [ "$(id -u)" = "0" ]; then + prompt_color=31 +else + prompt_color=32 +fi + +export PROMPT="\\X\\u@\\h:\\w\\a\\e[$prompt_color;1m\\h\\e[0m:\\e[34;1m\\w\\e[0m \\p " +export TMPDIR=/tmp + +PROGRAMS_ALLOWED_TO_MODIFY_DEFAULT_TERMIOS="stty" |