Rationalize the use of custom config files
This commit is contained in:
parent
5bc0b45cdc
commit
2425fdca43
9 changed files with 9 additions and 11 deletions
4
.bashrc
4
.bashrc
|
@ -11,12 +11,14 @@ export HISTCONTROL=ignoredups
|
||||||
export CLICOLOR=1
|
export CLICOLOR=1
|
||||||
export EDITOR='vim'
|
export EDITOR='vim'
|
||||||
export PAGER='less'
|
export PAGER='less'
|
||||||
|
export MY_CONFIG="$HOME/.config/rodolphe"
|
||||||
export USER_NICKNAME="Rodolphe Bréard"
|
export USER_NICKNAME="Rodolphe Bréard"
|
||||||
export DEBEMAIL="packages+deb@what.tf"
|
export DEBEMAIL="packages+deb@what.tf"
|
||||||
export DEBFULLNAME="$USER_NICKNAME"
|
export DEBFULLNAME="$USER_NICKNAME"
|
||||||
|
|
||||||
# Path
|
# Path
|
||||||
[ -f ~/.setpath.sh ] && . ~/.setpath.sh
|
[ -f "$MY_CONFIG/.setpath.sh" ] && . "$MY_CONFIG/.setpath.sh"
|
||||||
|
[ -f "$MY_CONFIG/.xdg_set_env.sh" ] && . "$MY_CONFIG/.xdg_set_env.sh"
|
||||||
|
|
||||||
# Colors
|
# Colors
|
||||||
[ "$CLICOLOR" -ne 0 ] && hash dircolors 2>/dev/null && eval $(dircolors -b)
|
[ "$CLICOLOR" -ne 0 ] && hash dircolors 2>/dev/null && eval $(dircolors -b)
|
||||||
|
|
|
@ -35,9 +35,6 @@ fi
|
||||||
# Proxy settings
|
# Proxy settings
|
||||||
[ -f "$HOME/.proxy" ] && . "$HOME/.proxy"
|
[ -f "$HOME/.proxy" ] && . "$HOME/.proxy"
|
||||||
|
|
||||||
# Compose key
|
|
||||||
[ -f ~/.set_compose_key.sh ] && . ~/.set_compose_key.sh
|
|
||||||
|
|
||||||
# skim
|
# skim
|
||||||
[ -f "/usr/share/skim/key-bindings.zsh" ] && . /usr/share/skim/key-bindings.zsh
|
[ -f "/usr/share/skim/key-bindings.zsh" ] && . /usr/share/skim/key-bindings.zsh
|
||||||
[ -f "/usr/share/skim/completion.zsh" ] && . /usr/share/skim/completion.zsh
|
[ -f "/usr/share/skim/completion.zsh" ] && . /usr/share/skim/completion.zsh
|
||||||
|
|
1
.xinitrc
1
.xinitrc
|
@ -1,5 +1,4 @@
|
||||||
[ -f ~/.xprofile ] && . ~/.xprofile
|
[ -f ~/.xprofile ] && . ~/.xprofile
|
||||||
[ -f ~/.setpath.sh ] && . ~/.setpath.sh
|
|
||||||
|
|
||||||
AUTHORISED_WM="qtile i3"
|
AUTHORISED_WM="qtile i3"
|
||||||
AVAILABLE_WM=""
|
AVAILABLE_WM=""
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
[ -f /etc/xprofile ] && . /etc/xprofile
|
[ -f /etc/xprofile ] && . /etc/xprofile
|
||||||
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
|
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
|
||||||
[ -f ~/.setpath.sh ] && . ~/.setpath.sh
|
[ -f "$MY_CONFIG/.set_compose_key.sh" ] && . "$MY_CONFIG/.set_compose_key.sh"
|
||||||
[ -f ~/.set_compose_key.sh ] && . ~/.set_compose_key.sh
|
|
||||||
[ -f ~/.xdg_set_env.sh ] && . ~/.xdg_set_env.sh
|
|
||||||
|
|
||||||
hash xcompmgr 2>/dev/null && xcompmgr &
|
hash xcompmgr 2>/dev/null && xcompmgr &
|
||||||
hash xscreensaver 2>/dev/null && xscreensaver -no-splash &
|
hash xscreensaver 2>/dev/null && xscreensaver -no-splash &
|
||||||
|
|
7
.zshenv
7
.zshenv
|
@ -1,6 +1,9 @@
|
||||||
# ZSH configuration
|
# ZSH configuration
|
||||||
export ZDOTDIR="$HOME/.config/zsh"
|
export ZDOTDIR="$HOME/.config/zsh"
|
||||||
|
|
||||||
|
# Custom configuration
|
||||||
|
export MY_CONFIG="$HOME/.config/rodolphe"
|
||||||
|
|
||||||
# History
|
# History
|
||||||
export HISTFILE_DIR="$HOME/.local/share/zsh"
|
export HISTFILE_DIR="$HOME/.local/share/zsh"
|
||||||
export HISTFILE="$HISTFILE_DIR/.zsh_history"
|
export HISTFILE="$HISTFILE_DIR/.zsh_history"
|
||||||
|
@ -19,5 +22,5 @@ export DEBEMAIL="packages+deb@what.tf"
|
||||||
export DEBFULLNAME="$USER_NICKNAME"
|
export DEBFULLNAME="$USER_NICKNAME"
|
||||||
|
|
||||||
# Path
|
# Path
|
||||||
[ -f ~/.setpath.sh ] && . ~/.setpath.sh
|
[ -f "$MY_CONFIG/.setpath.sh" ] && . "$MY_CONFIG/.setpath.sh"
|
||||||
[ -f ~/.xdg_set_env.sh ] && . ~/.xdg_set_env.sh
|
[ -f "$MY_CONFIG/.xdg_set_env.sh" ] && . "$MY_CONFIG/.xdg_set_env.sh"
|
||||||
|
|
1
bin/sway
1
bin/sway
|
@ -9,6 +9,5 @@ if [ -f "$COMPOSE_KEY_FILE" ]; then
|
||||||
COMPOSE_KEY=$(cat "$COMPOSE_KEY_FILE")
|
COMPOSE_KEY=$(cat "$COMPOSE_KEY_FILE")
|
||||||
export XKB_DEFAULT_OPTIONS="compose:$COMPOSE_KEY"
|
export XKB_DEFAULT_OPTIONS="compose:$COMPOSE_KEY"
|
||||||
fi
|
fi
|
||||||
[ -f "$HOME/.xdg_set_env.sh" ] && . "$HOME/.xdg_set_env.sh"
|
|
||||||
|
|
||||||
/usr/bin/sway "$@"
|
/usr/bin/sway "$@"
|
||||||
|
|
Loading…
Reference in a new issue