diff --git a/configs/shell/profile b/configs/shell/profile index ed84541..3867f55 100644 --- a/configs/shell/profile +++ b/configs/shell/profile @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # Keyboard lights [ -x "$(command -v g610-led)" ] && g610-led -a ff @@ -6,9 +6,11 @@ # Colors [ -x "$(command -v wal)" ] && wal -R -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 +export PATH +PATH="$PATH:$(du "$HOME/.local/bin" | cut -f2 | paste -sd ':' -)" + +if test -d "$HOME"/.local/share/cargo/bin; then + PATH="$PATH:$HOME/.local/share/cargo/bin" fi unsetopt PROMPT_SP @@ -34,14 +36,28 @@ export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/shell/zsh" 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. +export LESS_TERMCAP_mb +LESS_TERMCAP_mb="$(printf '%b' '')" + +export LESS_TERMCAP_md +LESS_TERMCAP_md="$(printf '%b' '')" + +export LESS_TERMCAP_me +LESS_TERMCAP_me="$(printf '%b' '')" + +export LESS_TERMCAP_se +LESS_TERMCAP_se="$(printf '%b' '')" + +export LESS_TERMCAP_so +LESS_TERMCAP_so="$(printf '%b' '')" + +export LESS_TERMCAP_ue +LESS_TERMCAP_ue="$(printf '%b' '')" + +export LESS_TERMCAP_us +LESS_TERMCAP_us="$(printf '%b' '')" + # Multithreading -export XZ_DEFAULTS="-T 0" +export XZ_DEFAULTS="-T 0"