my dotz
0

Configure Feed

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

at main 1.1 kB View raw
1#!/bin/sh 2 3PS1='$(prompt) \$ ' 4 5# this is a story all about how 6# history control in bash sucks, wow 7HISTFILE=~/.sh_eternal_history 8HISTSIZE= 9HISTCONTROL=ignoredups:erasedups 10shopt -s histappend 11 12# extend pa for git stuffs 13# meh i don't like this at all tbh 14pa() { 15 case $1 in 16 g) 17 cd "${PA_DIR:=${XDG_DATA_HOME:=$HOME/.local/share}/pa/passwords}" 18 git pull 19 git add --all 20 git commit -m '*' 21 git push 22 cd - 23 ;; 24 25 *) 26 command pa "$@" 27 ;; 28 esac 29} 30 31if ls --version 2>&1 | grep -iE "gnu|busybox" > /dev/null; then 32 alias ls='ls --color=auto -p ' 33fi 34 35if [ -z "${SSH_AGENT_PID}" ] 36then 37 if ! [ -e /tmp/ssh-agent-$USER ] 38 then 39 ssh-agent 2>/dev/null >/tmp/ssh-agent-$USER 40 fi 41 . /tmp/ssh-agent-$USER >/dev/null 42fi 43 44if [ "$TERM" = "foot" ] || [ "$TERM" = "xterm-ghostty" ]; then 45 alias ssh='TERM=xterm-256color ssh' 46fi 47 48# simple prompt 49# for demo purposes mostly 50alias sp="export PS1='$ '" 51 52command -v direnv >/dev/null 2>&1 && 53 eval "$(direnv hook bash)"