mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2025-05-16 10:33:08 +00:00
chore(yadm): remove abuild keys for a while for encrypted backups
Also add more SSH keys behind the scenes Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
This commit is contained in:
parent
513b0a37ec
commit
486f36ae46
3 changed files with 63 additions and 8 deletions
53
.bash_login
53
.bash_login
|
@ -20,5 +20,56 @@ if [ -f "$HOME/.config/localconfig.env" ]; then
|
|||
. "$HOME/.config/localconfig.env"
|
||||
fi
|
||||
|
||||
# # shellcheck source=./.bashrc
|
||||
# Load bash
|
||||
# shellcheck source=./.bashrc
|
||||
source ./.bashrc
|
||||
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if [ -d "$HOME/bin" ] ; then
|
||||
PATH="$HOME/bin:$PATH"
|
||||
fi
|
||||
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if [ -d "$HOME/.local/bin" ] ; then
|
||||
PATH="$HOME/.local/bin:$PATH"
|
||||
fi
|
||||
|
||||
export PATH="/usr/local/bin:$HOME/.local/bin:$HOME/bin${PATH:+:}$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts" # ~vern specifics and more
|
||||
mesg n 2> /dev/null || true
|
||||
|
||||
# then import the rest
|
||||
source "$HOME/.env"
|
||||
source "$HOME/.config/aliases"
|
||||
export POSIX_PROFILE_SOURCED=true
|
||||
|
||||
# how about detecting local configs
|
||||
if [ -f "$HOME/.config/localconfig.env" ]; then
|
||||
. "$HOME/.config/localconfig.env"
|
||||
fi
|
||||
|
||||
##########################################################################################
|
||||
# Code snippets from https://git.sr.ht/~sircmpwn/dotfiles/tree/db5945a4/item/.env
|
||||
##########################################################################################
|
||||
if ls --version 2>&1 | grep -i gnu >/dev/null
|
||||
then
|
||||
alias ls='ls --color=auto '
|
||||
elif ls --version 2>&1 | grep -i busybox >/dev/null
|
||||
then
|
||||
alias ls='ls --color=auto '
|
||||
fi
|
||||
|
||||
alias recent='ls -ltch'
|
||||
|
||||
# Add optmizations for multicore builds
|
||||
if [ $(uname) = "Linux" ]
|
||||
then
|
||||
nproc=$(grep '^processor' /proc/cpuinfo | wc -l)
|
||||
if [ $nproc -gt 4 ]
|
||||
then
|
||||
# Reserve two cores
|
||||
nproc=$((nproc - 2))
|
||||
fi
|
||||
export MAKEFLAGS="-j$nproc"
|
||||
export SAMUFLAGS="-j$nproc"
|
||||
fi
|
||||
##########################################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue