From f8759897293de64c101a69bec3af2705b7c84902 Mon Sep 17 00:00:00 2001 From: Mehdi Sadeghi Date: Tue, 7 Jun 2022 08:06:48 +0200 Subject: Separate sh history. Add hist count to prompt. sh history is written to ~/.sh_history now. The reason is that I am chasing the cause of a history truncation issue. --- .profile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to '.profile') diff --git a/.profile b/.profile index d038555..b91f198 100644 --- a/.profile +++ b/.profile @@ -1,23 +1,28 @@ -echo .profile begin # .profile +echo .profile begin + export ENV=~/.env export LANG=en_US.UTF-8 -export LANGUAGE=en_US:de_DE +export LANGUAGE=en export LC_ALL=en_US.UTF-8 export EDITOR=vim -export HISTSIZE=65535 + +#export GDK_BACKEND=wayland export MAKEFLAGS=-j`lscpu | grep '^CPU(s):' | awk -F' ' '{ print $2 }'` export CFLAGS="-O2 -pipe -march=native" export CXXFLAGS="${CFLAGS}" + # Sway compatiblity https://github.com/swaywm/sway/issues/595 export _JAVA_AWT_WM_NONREPARENTING=1 -#export GDK_BACKEND=wayland HOSTNAME=$(cat /proc/sys/kernel/hostname) [ -e .config/$HOSTNAME.profile ] && . .config/$HOSTNAME.profile -[ $0 != sh ] && [ -n "$BASH_VERSION" ] && shopt login_shell 2>&1 > /dev/null && [ -f ~/.bashrc ] && . ~/.bashrc -echo .profile end +# Load .bashrc in login shells for bash +[ $0 != sh ] && [ -n "$BASH_VERSION" ] \ + && shopt login_shell 2>&1 > /dev/null \ + && [ -f ~/.bashrc ] && . ~/.bashrc \ + && echo "$(date): .bashrc loaded from .profile" >> ~/debug_logs -if [ -e /home/mx/.nix-profile/etc/profile.d/nix.sh ]; then . /home/mx/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer +echo .profile end -- cgit v1.2.3