commit b9584d1ec8a234ae310513903dc6ba41d5596100 parent bde24bb9e31786d17fc886603f5f52e3b3b6a0ef Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Thu, 3 Oct 2019 12:42:34 +0200 Move external includes and PS1 setting to .profile Diffstat:
M | .kshrc | | | 10 | ---------- |
M | .profile | | | 7 | ++++++- |
2 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/.kshrc b/.kshrc @@ -2,13 +2,3 @@ HISTFILE="$HOME/.ksh_history" HISTSIZE=50000 set -o vi - -if [ $(tput colors) -gt 8 ]; then - PS1="$(tput setaf 2 2 2)\u@\h $(tput setaf 4 4 4)\w$(tput sgr0) \$ " -else - PS1="\u@\h \w \$ " -fi -export PS1 - -[ -f $HOME/.config/sh/profile ] && . $HOME/.config/sh/profile -[ -f $HOME/.config/sh/commands ] && . $HOME/.config/sh/commands diff --git a/.profile b/.profile @@ -2,4 +2,9 @@ PATH=$HOME/.local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games export PATH HOME TERM ENV -. $HOME/.kshrc + +[ -f $HOME/.config/sh/profile ] && . $HOME/.config/sh/profile +[ -f $HOME/.config/sh/commands ] && . $HOME/.config/sh/commands + +export PS1="\033[31m\u@\h \033[35m\w \033[00m\$ " +export ENV=$HOME/.kshrc