mirror of
https://codeberg.org/frosty/dotfiles.git
synced 2024-09-19 11:47:09 -04:00
make some cross-system fixes
This commit is contained in:
parent
a0f6d24712
commit
7ebe7d335c
|
@ -1,13 +1,13 @@
|
||||||
# shellcheck shell=sh disable=SC1091
|
# shellcheck shell=sh disable=SC1091
|
||||||
|
|
||||||
[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"
|
|
||||||
|
|
||||||
# XDG base directories
|
# XDG base directories
|
||||||
export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||||
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
|
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||||
export XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
|
export XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
|
||||||
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
|
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
|
||||||
|
|
||||||
|
[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"
|
||||||
|
|
||||||
# Default programs
|
# Default programs
|
||||||
export TERMINAL="${TERMINAL:-st}"
|
export TERMINAL="${TERMINAL:-st}"
|
||||||
export EDITOR="${EDITOR:-nvim}"
|
export EDITOR="${EDITOR:-nvim}"
|
||||||
|
@ -36,4 +36,4 @@ export PATH="$PATH:$CARGO_HOME/bin"
|
||||||
export PATH="$PATH:$XDG_DATA_HOME/npm/bin"
|
export PATH="$PATH:$XDG_DATA_HOME/npm/bin"
|
||||||
|
|
||||||
# Automatic graphical start
|
# Automatic graphical start
|
||||||
[ "$(tty)" = "/dev/tty2" ] && exec startx
|
[ "$(tty)" = "/dev/tty2" ] && exec startx || :
|
||||||
|
|
4
.bashrc
4
.bashrc
|
@ -15,9 +15,7 @@ alias mv='mv -iv'
|
||||||
alias rm='rm -vI'
|
alias rm='rm -vI'
|
||||||
alias mkdir='mkdir -pv'
|
alias mkdir='mkdir -pv'
|
||||||
alias ls='ls --color=auto -AF'
|
alias ls='ls --color=auto -AF'
|
||||||
cd() {
|
cd() { builtin cd "$@" && ls; }
|
||||||
builtin cd "$@" && ls
|
|
||||||
}
|
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias wget='wget --no-hsts'
|
alias wget='wget --no-hsts'
|
||||||
alias vim='nvim'
|
alias vim='nvim'
|
||||||
|
|
4
.xinitrc
4
.xinitrc
|
@ -25,5 +25,9 @@ mpd --no-daemon &
|
||||||
modbot -x &
|
modbot -x &
|
||||||
|
|
||||||
while :; do
|
while :; do
|
||||||
|
if command -v dbus-launch >/dev/null; then
|
||||||
dbus-launch --sh-syntax --exit-with-session dwm
|
dbus-launch --sh-syntax --exit-with-session dwm
|
||||||
|
elif command -v dbus-run-session >/dev/null; then
|
||||||
|
dbus-run-session dwm
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue