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