Doors/configs/shell/profile
2024-01-06 03:03:34 -05:00

124 lines
2.6 KiB
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# Keyboard lights
[ -x "$(command -v g610-led)" ] && g610-led -a ff
export PATH="$PATH:$(du "$HOME/.local/bin" | cut -f2 | paste -sd ':' -)"
if test -d $HOME/.local/share/cargo/bin; then
export PATH=$PATH:$HOME/.local/share/cargo/bin
fi
unsetopt PROMPT_SP
# Default programs:
export BROWSER="firefox-developer-edition"
export EDITOR="nvim"
export TERMINAL="alacritty"
# Move config files out of home and into .config/
export ANDROID_SDK_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/android"
export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo"
export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go"
export GTK2_RC_FILES="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-2.0/gtkrc-2.0"
export HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/history"
export KODI_DATA="${XDG_DATA_HOME:-$HOME/.local/share}/kodi"
export LESSHISTFILE="-"
export PASSWORD_STORE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/password-store"
export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/shell/zsh"
# Other program settings:
export FZF_DEFAULT_OPTS="--layout=reverse --height 40%"
export LESS=-R
export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
export LESS_TERMCAP_mb="$(printf '%b' '')"
export LESS_TERMCAP_md="$(printf '%b' '')"
export LESS_TERMCAP_me="$(printf '%b' '')"
export LESS_TERMCAP_se="$(printf '%b' '')"
export LESS_TERMCAP_so="$(printf '%b' '')"
export LESS_TERMCAP_ue="$(printf '%b' '')"
export LESS_TERMCAP_us="$(printf '%b' '')"
export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme.
# Multithreading
export XZ_DEFAULTS="-T 0"
# This is the list for lf icons:
export LF_ICONS=" \
*.1=:\
*.7z=📦:\
*.R=📊:\
*.Rmd=📊:\
*.avi=🎥:\
*.bib=🎓:\
*.css=🎨:\
*.csv=📓:\
*.djvu=📚:\
*.epub=📚:\
*.flac=🎼:\
*.flv=🎥:\
*.gba=🎮:\
*.gdi=🎮:\
*.ged=👪:\
*.gif=🖼:\
*.gpg=🔒:\
*.html=🌎:\
*.ico=🖼:\
*.img=📀:\
*.info=:\
*.iso=📀:\
*.jar=♨:\
*.java=♨:\
*.jpe=📸:\
*.jpeg=📸:\
*.jpg=📸:\
*.log=📙:\
*.m4a=🎵:\
*.m4b=🎥:\
*.m=📊:\
*.md=📘:\
*.me=✍:\
*.mkv=🎥:\
*.mom=✍:\
*.mov=🎥:\
*.mp3=🎵:\
*.mp4=🎥:\
*.mpeg=🎥:\
*.mpg=🎥:\
*.ms=✍:\
*.n64=🎮:\
*.nes=🎮:\
*.nfo=:\
*.ogg=🎵:\
*.opus=🎵:\
*.part=💔:\
*.pdf=📚:\
*.png=🖼:\
*.r=📊:\
*.rar=📦:\
*.rmd=📊:\
*.svg=🗺:\
*.tar.gz=📦:\
*.tex=📜:\
*.tif=🖼:\
*.tiff=🖼:\
*.torrent=🔽:\
*.txt=✍:\
*.v64=🎮:\
*.wav=🎼:\
*.webm=🎥:\
*.webp=🖼:\
*.wmv=🎥:\
*.xcf=🖌:\
*.xlsx=📓:\
*.xml=📰:\
*.z64=🎮:\
*.zip=📦:\
di=📁:\
ex=🎯:\
fi=📃:\
ln=⛓:\
or=❌:\
ow=📂:\
tw=🤝:\
"