From d9875a5f7820a4040d7658d348e5e8a4d1b10d31 Mon Sep 17 00:00:00 2001 From: Mehdi Sadeghi Date: Sat, 11 Feb 2023 11:39:09 +0100 Subject: Add profile warning, git autoSetup, GDK & new envs - Warn on existing .bash_profile (it prevents loading .profile) - Add autoSetupRemote to create git remote branches on push - Add GTK setting to use Wayland - Add volta env vars since I use it alot --- .bashrc | 3 +++ .gitconfig | 2 ++ .profile | 5 ++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 99884a3..c4439e7 100644 --- a/.bashrc +++ b/.bashrc @@ -6,6 +6,9 @@ echo .bashrc begin PS1='\[\033[1;33m\]$($HOME/.local/bin/prompt)\[\033[0m\]' +# Warn if .bash_profile exists (since it will prevent loading .profile) +[[ -f ~/.bash_profile ]] && echo WARN: .bash_profile exists + # Bash history config HISTSIZE=65535 HISTFILE=$HOME/.bash_history diff --git a/.gitconfig b/.gitconfig index ca2b182..48d7c01 100644 --- a/.gitconfig +++ b/.gitconfig @@ -17,3 +17,5 @@ [credential] helper = store +[push] + autoSetupRemote = true diff --git a/.profile b/.profile index b91f198..51412e0 100644 --- a/.profile +++ b/.profile @@ -7,7 +7,7 @@ export LANGUAGE=en export LC_ALL=en_US.UTF-8 export EDITOR=vim -#export GDK_BACKEND=wayland +export GDK_BACKEND=wayland export MAKEFLAGS=-j`lscpu | grep '^CPU(s):' | awk -F' ' '{ print $2 }'` export CFLAGS="-O2 -pipe -march=native" @@ -25,4 +25,7 @@ HOSTNAME=$(cat /proc/sys/kernel/hostname) && [ -f ~/.bashrc ] && . ~/.bashrc \ && echo "$(date): .bashrc loaded from .profile" >> ~/debug_logs +export VOLTA_HOME="$HOME/.volta" +export PATH="$VOLTA_HOME/bin:$PATH" + echo .profile end -- cgit v1.2.3