~mehdix/dotfiles

d9875a5f7820a4040d7658d348e5e8a4d1b10d31 — Mehdi Sadeghi 1 year, 7 months ago 0166b86
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
3 files changed, 9 insertions(+), 1 deletions(-)

M .bashrc
M .gitconfig
M .profile
M .bashrc => .bashrc +3 -0
@@ 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

M .gitconfig => .gitconfig +2 -0
@@ 17,3 17,5 @@

[credential]
	helper = store
[push]
	autoSetupRemote = true

M .profile => .profile +4 -1
@@ 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