BIG UPDATE: shell: add profile, move calc and mkcd to files, move
shell-independent config (aliases, functions, env vars, options) to .config/shell/shrc, make bashrc and zshrc use the same shrc, add TTY detection for changing caps lock to escape in a TTY, add option for skipping plugin loading, and maybe a few other things If this goes well, I'll be tempted to call this version 1.0. Things have been very stable for the last few months. Although, since it's the first really big change in a while, that might make it version 2.0? Should dotfiles have big version numbers at all? Probably not.
This commit is contained in:
parent
4241c6ef05
commit
f5e15cacde
6 changed files with 209 additions and 94 deletions
|
@ -3,7 +3,7 @@
|
|||
# This file should be compatible with standard sh
|
||||
# shellcheck disable=SC2034
|
||||
|
||||
export SHELL_CONFIG_DIR="${SHELL_CONFIG_DIR:-"${XDG_CONFIG_HOME:-$HOME/.config}/shell"}"
|
||||
export SHELL_CONFIG_DIR="${SHELL_CONFIG_DIR:-"${XDG_CONFIG_HOME:-"$HOME/.config"}/shell"}"
|
||||
if ! [ -d "$SHELL_CONFIG_DIR" ]; then
|
||||
echo "FATAL ERROR: \$SHELL_CONFIG_DIR is not set to a real directory: $SHELL_CONFIG_DIR"
|
||||
fi
|
||||
|
@ -63,7 +63,7 @@ export COMPLETION_WAITING_DOTS=true
|
|||
export POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD="${POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD:-true}"
|
||||
export POWERLEVEL9K_INSTANT_PROMPT="${POWERLEVEL9K_INSTANT_PROMPT:-quiet}"
|
||||
# TODO?: maybe add a bit of code to select a random theme if none is detected (make sure to disable instant prompt if this happens)
|
||||
export P10K_CONFIG_LOCATION="$SHELL_CONFIG_DIR/p10k/current"
|
||||
export P10K_CONFIG_LOCATION="${P10K_CONFIG_LOCATION:-"$SHELL_CONFIG_DIR/p10k/current"}"
|
||||
# <<<
|
||||
|
||||
###########################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue