summaryrefslogtreecommitdiff
path: root/.env
blob: 5f6b4017faca888c21d56ad05e5ac8c41592d7b1 (plain)
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
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

# Aliases
# `githome` alias is a trick to avoid having git prompt when working
# in different directories of my home folder. I simply rename `.git`
# folder to `.githome` and use the following alias to interact with it.
# On new systems I only need to do the following:
# cd ~
# git init
# git remote add origin git@git.sr.ht:~mehdix/dotfiles
# or
# git remote add origin https://git.sr.ht/~mehdix/dotfiles
# git fetch
# git checkout -f master
# mv .git .githome
alias githome='git --git-dir ~/.githome --work-tree ~'

alias ls='ls --color -A --group-directories-first --sort=extension'
alias recent='ls -ltch'

# Use correct TTY for GPG Pinentry
export GPG_TTY="$(tty)"
gpg-connect-agent updatestartuptty /bye >/dev/null