blob: 3527b1b9e2e351c11ec708bb8210006571a1b2db (
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
32
33
34
35
36
37
38
39
40
41
|
alias grep="ugrep --exclude-dir=node-modules --exclude-dir=_build"
alias e="$EDITOR"
alias g="git"
alias rcup="rcup -d ~/rcm"
alias lsrc="lsrc -d ~/rcm"
alias rcdn="rcdn -d ~/rcm"
alias mkrc="mkrc -d ~/rcm"
alias infols="inxi -S -c 0"
alias f-commit="fossil commit && fossil git export"
# Bash initialization for interactive non-login shells and
# for remote shells (info "(bash) Bash Startup Files").
# Export 'SHELL' to child processes. Programs such as 'screen'
# honor it and otherwise use /bin/sh.
export SHELL
if [[ $- != *i* ]]
then
# We are being invoked from a non-interactive shell. If this
# is an SSH session (as in "ssh host command"), source
# /etc/profile so we get PATH and other essential variables.
[[ -n "$SSH_CLIENT" ]] && source /etc/profile
# Don't do anything else.
return
fi
# Source the system-wide file.
[ -f /etc/bashrc ] && source /etc/bashrc
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1./'
}
PS1=' $(parse_git_branch)\W. '
eval "$(zoxide init bash)"
eval "$(direnv hook bash)"
export PATH=${PATH}:~/.local/bin
export GPG_TTY=/dev/pts/0
gpg-connect-agent updatestartuptty /bye >/dev/null
|