blob: b9d9858b02880c979bccfb73165f6f66b663cace (
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
|
set -o vi
PS1="[\h \W] \$ "
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 TERMINAL="ptyxis --new-window"
export XEDIT="gnome-text-editor"
export NOTIFY=notify-send
export OPENER=xdg-open #or set to open-file from scripts
export BROWSER=firefox
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"
export PYTHON_COLORS=0
# Locale overrides
export LC_COLLATE="C"
### Program-specific
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"
### Aliases and functions
alias bc='bc -q /home/sebastiano/box/bc.library'
alias o='xdg-open'
alias rm='trash-put'
alias ls='ls --color=auto'
alias clip='clip -m fzf'
alias bm='dmenu-bookmarks -m fzf'
alias f='feed get && feed -m fzf menu'
alias svi='vi "+so $HOME/.virc-spaces"'
# 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; }
# Comment out the next line when not working regularly with emscripten
#EMSDK_QUIET=1 source "$HOME/dev/emsdk/emsdk_env.sh"
# nissy build options
export NISSY_BUILD_SANITIZE="address,undefined"
# Rust things
export RUSTUP_HOME="$HOME/dev/rustup"
export CARGO_HOME="$HOME/dev/cargo"
export PATH="$CARGO_HOME/bin:$PATH"
startrust() { source "$CARGO_HOME/env"; }
# Session cookies are kept in .ssh
. $HOME/.ssh/sessions
|