Doors/configs/shell/profile

128 lines
2.6 KiB
Text
Raw Normal View History

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