my dotz
0

Configure Feed

Select the types of activity you want to include in your feed.

Add .rc

+62
+62
.rc
··· 1 + #!/bin/sh 2 + 3 + PS1='$(prompt) \$ ' 4 + 5 + # make history infinite, dedup'd, and sync'd between terms 6 + HISTFILESIZE=infinite 7 + HISTCONTROL=ignoredups:erasedups 8 + shopt -s histappend 9 + PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r" 10 + 11 + # extend pa for git stuffs 12 + # meh i don't like this at all tbh 13 + pa() { 14 + case $1 in 15 + g) 16 + cd "${PA_DIR:=${XDG_DATA_HOME:=$HOME/.local/share}/pa}" 17 + git pull 18 + git add --all 19 + git commit -m '*' 20 + git push 21 + cd - 22 + ;; 23 + 24 + *) 25 + command pa "$@" 26 + ;; 27 + esac 28 + } 29 + 30 + # yep still needed 31 + if ls --version 2>&1 | grep -i gnu > /dev/null 32 + then 33 + alias ls='ls --color=auto ' 34 + elif ls --version 2>&1 | grep -i busybox > /dev/null 35 + then 36 + alias ls='ls --color=auto ' 37 + fi 38 + 39 + if [ -z "${SSH_AGENT_PID}" ] 40 + then 41 + if ! [ -e /tmp/ssh-agent-$USER ] 42 + then 43 + ssh-agent 2>/dev/null >/tmp/ssh-agent-$USER 44 + fi 45 + . /tmp/ssh-agent-$USER >/dev/null 46 + fi 47 + 48 + # launch alacritty with no GPU support if on old thinkpad 49 + # TODO: maybe irrelevant when using foot 50 + if [ "$(hostname)" == 'nyx' ]; then 51 + export LIBGL_ALWAYS_SOFTWARE=1 52 + fi 53 + 54 + if [ "$(hostname)" == 'nostromo' ]; then 55 + if ! pgrep syncthing &> /dev/null; then 56 + syncthing --no-browser > /dev/null & 57 + fi 58 + fi 59 + 60 + if [ "$TERM" = "alacritty" ]; then 61 + alias ssh='TERM=xterm-256color ssh' 62 + fi