-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathprofile
69 lines (55 loc) · 2.6 KB
/
profile
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
66
67
68
69
# shellcheck shell=sh
export VISUAL=vim
export EDITOR=vim
export FIREFOX=firefox-esr
export BROWSER=$FIREFOX
# This makes GTK 3 applications look better on the 2560x1600 display of my ThinkPad X13
# Gen 2. See <https://wiki.archlinux.org/title/HiDPI#GDK_3_(GTK_3)>.
export GDK_SCALE=2 GDK_DPI_SCALE=0.5
# This makes `tree` use color.
export CLICOLOR=
# This causes searches in `less` to ignore case by default.
export LESS=i~
export FZF_DEFAULT_COMMAND='fd --follow --strip-cwd-prefix --type file'
fzf_default_opts=("--wrap-sign='> ' --pointer='>' --marker='>' --ellipsis='..'"
"--scroll-off=0")
export FZF_DEFAULT_OPTS=${fzf_default_opts[*]}
export FZF_CTRL_T_COMMAND=$FZF_DEFAULT_COMMAND
# Export an environment variable for executing the pgpewrap program bundled with
# (Neo)Mutt. See <https://stackoverflow.com/a/677212>.
if command -v pgpewrap >/dev/null 2>&1; then
# It's in $PATH. E.g. the case with Arch's package.
export PGPEWRAP=pgpewrap
elif command -v /usr/lib/neomutt/pgpewrap >/dev/null 2>&1; then
# This is the location used by Arch's neomutt package.
export PGPEWRAP=/usr/lib/neomutt/pgpewrap
elif command -v /usr/lib/mutt/pgpewrap >/dev/null 2>&1; then
# This is the location used by Ubuntu's package.
export PGPEWRAP=/usr/lib/mutt/pgpewrap
fi
# Makes wiki-search-html from the arch-wiki-light package work.
export wiki_browser=$BROWSER
# Make [SDL][1] use ALSA as the audio driver (see [2]). Without this, DOSBox can't play
# sound at the same time as (e.g.) MPD. TODO: use PulseAudio instead? Firefox can't use
# ALSA directly since [version 52][3].
# [1]: https://libsdl.org
# [2]: https://wiki.libsdl.org/FAQUsingSDL#How_do_I_choose_a_specific_audio_driver.3F
# [3]: https://mozilla.org/en-US/firefox/52.0/releasenotes/
export SDL_AUDIODRIVER=alsa
# Make RubyGems available (https://guides.rubygems.org/faqs/#user-install).
if which ruby >/dev/null && which gem >/dev/null; then
PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH"
fi
# Make executables installed with `pip install --user ...`, which drops them into
# `~/.local/bin/`, available. See
# <https://docs.python.org/3/install/index.html#alternate-installation-the-user-scheme>.
PATH="$HOME/.local/bin/:$PATH"
# Set PATH to include ~/.bin if it exists. See <https://askubuntu.com/a/402410>.
if [ -d "$HOME/.bin" ]; then
PATH="$HOME/.bin:$PATH"
fi
# Support conveniently adding cowfiles in the `/usr/local/share/cows/` directory, so they
# can be used without specifying a path. See cowsay(1).
export COWPATH="/usr/local/share/cows:/usr/share/cows:$COWPATH"
export PASSWORD_STORE_DIR=~/passwords
# vim: ft=sh