From 4fc73c77daaa5075fc01ab5d0d2b4e9b3aa0938f Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 30 Nov 2025 17:24:01 +0100 Subject: Initial commit --- .bashrc-local | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .bashrc-local (limited to '.bashrc-local') diff --git a/.bashrc-local b/.bashrc-local new file mode 100644 index 0000000..cd06658 --- /dev/null +++ b/.bashrc-local @@ -0,0 +1,70 @@ +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" + +# Locale overrides +export LC_COLLATE="C" + +# Dart dev +export PATH="$HOME/dev/dart-sdk/bin:$PATH" + +### 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 feed='feed -m fzf' +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; } + +# emscripten +startem() { EMSDK_QUIET=1 source "$HOME/dev/emsdk/emsdk_env.sh"; } +startem # Comment this out when not working regularly with emscripten + +# 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"; } + +export PATH="$HOME/dev/gitlab-runner/bin:$PATH" + +# Session cookies are kept in .ssh +. $HOME/.ssh/sessions -- cgit v1.3