blob: bd226b612c8c53a79468fd2c7071e76dc64e8096 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# .env
PS1='$(prompt)'
# sh history config
HISTSIZE=65535
HISTFILE=.sh_history
# Tell Readline to use vi-style keybindings
#set -o vi
#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'
alias gl='git pull'
alias gsl='git stash && git pull && git stash pop'
alias gcm='git checkout master'
alias gcd='git checkout develop'
alias gco='git checkout'
alias gst='git status'
alias mbsync="mbsync -c ~/.config/isync/mbsyncrc"
alias rm="rm -i"
PATH=$HOME/.local/bin:$PATH
HOSTNAME=$(cat /proc/sys/kernel/hostname)
PATH=$HOME/.local/bin/$HOSTNAME:$PATH
PATH=$HOME/.local/bin/`uname -m`:$PATH
PATH=$HOME/.cargo/bin:$PATH
GOPATH="$HOME/.local/share/go"
PATH=$GOPATH/bin:$PATH
export PATH
export GOPATH
export LANGUAGE=en
export BROWSER=w3m
# Load nix if available
[ -e $HOME/.nix-profile/etc/profile.d/nix.sh ] \
&& . $HOME/.nix-profile/etc/profile.d/nix.sh
# Use correct TTY for GPG Pinentry
export GPG_TTY="$(tty)"
gpg-connect-agent updatestartuptty /bye >/dev/null
# Null keyring for python - avoids problems with wallets
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
|