summaryrefslogtreecommitdiff
path: root/.bashrc-local
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-11-30 17:24:01 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2025-12-07 14:23:42 +0100
commit4fc73c77daaa5075fc01ab5d0d2b4e9b3aa0938f (patch)
tree99de1c0323d87fc798bafacdd5c04f7566322da4 /.bashrc-local
downloadconfig-4fc73c77daaa5075fc01ab5d0d2b4e9b3aa0938f.tar.gz
config-4fc73c77daaa5075fc01ab5d0d2b4e9b3aa0938f.zip
Initial commit
Diffstat (limited to '.bashrc-local')
-rw-r--r--.bashrc-local70
1 files changed, 70 insertions, 0 deletions
diff --git a/.bashrc-local b/.bashrc-local
new file mode 100644
index 0000000..cd06658
--- /dev/null
+++ b/.bashrc-local
@@ -0,0 +1,70 @@
1set -o vi
2
3PS1="[\h \W] \$ "
4
5export HISTCONTROL=ignoredups
6export HISTFILE=$HOME/.sh_history
7export HISTSIZE=10000
8
9# Standard stuff and variables for my scripts
10export EDITOR=vi
11export VISUAL=vi
12export TERMINAL="ptyxis --new-window"
13export XEDIT="gnome-text-editor"
14export NOTIFY=notify-send
15export OPENER=xdg-open #or set to open-file from scripts
16export BROWSER=firefox
17export XDG_CONFIG_HOME="$HOME/.config"
18export XDG_DATA_HOME="$HOME/.local/share"
19export XDG_CACHE_HOME="$HOME/.cache"
20
21# Locale overrides
22export LC_COLLATE="C"
23
24# Dart dev
25export PATH="$HOME/dev/dart-sdk/bin:$PATH"
26
27### Program-specific
28export FZF_DEFAULT_OPTS="-e -i -m --no-bold --no-color --layout=reverse-list"
29export LYNX_CFG="$XDG_CONFIG_HOME/lynx/lynx.cfg"
30export LYNX_LSS="$XDG_CONFIG_HOME/lynx/lynx.lss"
31
32### Aliases and functions
33alias bc='bc -q /home/sebastiano/box/bc.library'
34alias o='xdg-open'
35alias rm='trash-put'
36alias ls='ls --color=auto'
37alias clip='clip -m fzf'
38alias bm='dmenu-bookmarks -m fzf'
39alias feed='feed -m fzf'
40alias svi='vi "+so $HOME/.virc-spaces"'
41
42# Email management (mblaze)
43MAIL=$HOME/mail
44msync() { mbsync -a; }
45msc() { d=${1:-$MAIL/INBOX}; minc -q $d; mlist -t $d | mthread | mseq -S; mscan; }
46mget() { mbsync -a; msc; }
47mtt() { echo $MAIL/Trash | xargs mrefile $@; }
48mta() { echo $MAIL/Archive | xargs mrefile $@; }
49mpk() { f=$1; shift; mpick -t "$f =~~ \"$@\""; }
50s() { mshow $@ | templess; }
51sht() { mshow -A text/html $@; }
52n() { mshow .+1 | templess; }
53
54# emscripten
55startem() { EMSDK_QUIET=1 source "$HOME/dev/emsdk/emsdk_env.sh"; }
56startem # Comment this out when not working regularly with emscripten
57
58# nissy build options
59export NISSY_BUILD_SANITIZE="address,undefined"
60
61# Rust things
62export RUSTUP_HOME="$HOME/dev/rustup"
63export CARGO_HOME="$HOME/dev/cargo"
64export PATH="$CARGO_HOME/bin:$PATH"
65startrust() { source "$CARGO_HOME/env"; }
66
67export PATH="$HOME/dev/gitlab-runner/bin:$PATH"
68
69# Session cookies are kept in .ssh
70. $HOME/.ssh/sessions

Generated with cgit - Back to sebastiano.tronto.net