configuration/profile
Felix Van der Jeugt 8a4f99be1e
no more bar or background image
I'll just push this with debug stuff because it's been around way too long
2018-04-09 18:05:57 +02:00

31 lines
798 B
Bash
Executable File

#!/bin/sh
# XDG dirs
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_RUNTIME_DIR="/tmp/runtime-$(whoami)"
mkdir -p "$XDG_RUNTIME_DIR"
chmod 0700 "$XDG_RUNTIME_DIR"
# Local scripts
export CABAL_HOME="$HOME/.cabal"
export CARGO_HOME="$HOME/.cargo"
export RBENV_HOME="$HOME/.rbenv"
export PATH="$HOME/.local/bin:$CABAL_HOME/bin:$RBENV_HOME/shims:$CARGO_HOME/bin:$JAVA_HOME/bin:$PATH"
# For vim
export EDITOR="vis"
#stty -ixon # turn of <C-s> for vimshell
# Searching
export FZF_DEFAULT_COMMAND='(git ls-files -co --exclude-standard || rg --files) 2> /dev/null'
# Start X if we're in tty1
xsession() {
startx 2>&1 || vlock
#sudo poweroff
#sleep infinity
}
if tty | grep -q '/dev/tty1'; then xsession; fi