~sircmpwn/dotfiles

ref: fa8c0e062fe75fcc9cf14fbea23ef78f6b38df57 dotfiles/.env -rw-r--r-- 872 bytes
fa8c0e06Drew DeVault paste: update token variable name 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
set -b

PS1='$(prompt) \$ '

if [ -z "${SSH_AGENT_PID}" ]
then
	if ! [ -e /tmp/ssh-agent-$USER ]
	then
		ssh-agent 2>/dev/null >/tmp/ssh-agent-$USER
	fi
	. /tmp/ssh-agent-$USER >/dev/null
fi

alias gdbs='gdbserver localhost:12345'
alias gdbr='gdb -q -ex "target remote localhost:12345"'

alias ed='ed -p "% "'

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'
alias gmnlm='gmnlm -W 100'
alias du='du -b'

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

export PATH=$PATH:$HOME/sources/harec/build:$HOME/sources/hare/.bin
export HAREPATH=$HOME/sources/hare