summaryrefslogtreecommitdiff
path: root/.profile
blob: 0a92c08da25783026f54937a95334f0eb2e94235 (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
# Standard  options and environment variables
set -o vi

PATH="$HOME/scripts:$PATH"
PS1="[\h \W] \$ "
export LC_COLLATE="C"

export HISTCONTROL=ignoredups
export HISTFILE=$HOME/.sh_history
export HISTSIZE=10000

# Standard stuff and variables for my scripts
export EDITOR=vi
export VISUAL=vi
export NOTIFY=notify
export OPENER=open-file
export BROWSER=firefox
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"

# Program-specific stuff
export FZF_DEFAULT_OPTS="-e -i -m --no-bold --no-color --layout=reverse-list"
export LYNX_CFG="$XDG_CONFIG_HOME/lynx/lynx.cfg"
export LYNX_LSS="$XDG_CONFIG_HOME/lynx/lynx.lss"
export PYTHON_COLORS=0

# Aliases
alias o='open-file'
alias f='feed get && feed -m fzf menu'

alias bc='bc -q /home/sebastiano/box/bc.library'
alias rm='trash rm'
alias ls='ls --color=auto'
alias clip='clip -m fzf'

# Network management
alias w='iwctl station wlan0 get-networks'
alias e='doas ip link set eth1 up && doas udhcpc -i eth1 -n'
alias d='iwctl station wlan0 disconnect'

# Email management (mblaze)
MAIL=$HOME/mail
msync() { mbsync -a; }
msc()   { d=${1:-$MAIL/INBOX}; minc -q $d; mlist -t $d | mthread | mseq -S; mscan; }
mget()  { mbsync -a; msc; }
mtt()   { echo $MAIL/Trash | xargs mrefile $@; }
mta()   { echo $MAIL/Archive | xargs mrefile $@; }
mpk()   { f=$1; shift; mpick -t "$f =~~ \"$@\""; }
s()     { mshow $@ | templess; }
sht()   { mshow -A text/html $@; }
n()     { mshow .+1 | templess; }

# nissy build options
#export NISSY_BUILD_SANITIZE="address,undefined"

# Session cookies are kept in .ssh
[ -f $HOME/.ssh/sessions ] && . $HOME/.ssh/sessions

# startx if in tty1
[ "$(tty)" = "/dev/tty1" ] && \rm -f .serverauth.* && startx

Generated with cgit - Back to sebastiano.tronto.net