.env
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
#!/bin/sh PS1='$(prompt) \$ ' # handle history like a not caveman # Avoid duplicates HISTCONTROL=ignoredups:erasedups # When the shell exits, append to the history file instead of overwriting it shopt -s histappend # After each command, append to the history file and reread it PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r" # extend pa for git stuffs pa() { case $1 in g) cd "${PA_DIR:=${XDG_DATA_HOME:=$HOME/.local/share}/pa}" git pull git add --all git commit -m '*' git push cd - ;; *) command pa "$@" ;; esac } # yep still needed 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 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 # launch alacritty with no GPU support if on old thinkpad if [ "$(hostname)" == 'nyx' ]; then export LIBGL_ALWAYS_SOFTWARE=1 fi if [ "$(hostname)" == 'nostromo' ]; then if ! pgrep syncthing &> /dev/null; then syncthing --no-browser > /dev/null & fi fi