Use less git queries for prompt, s/fzf/sk/

This commit is contained in:
Felix Van der Jeugt 2020-08-20 15:52:59 +02:00
parent 1a1895d658
commit ea64da4901
No known key found for this signature in database
GPG key ID: 58B209295023754D
2 changed files with 34 additions and 21 deletions

23
profile
View file

@ -22,19 +22,24 @@ export EDITOR="vis"
export LEDGER_FILE="/data/documents/ledger/all.journal"
export LESSHISTFILE=-
export FZF_DEFAULT_COMMAND='(git ls-files -co --exclude-standard || rg --files) 2> /dev/null'
export SKIM_DEFAULT_COMMAND='(git ls-files -co --exclude-standard || rg --files) 2> /dev/null'
export LC_ALL=en_US.utf8
# Select Dock sound card if it's there
if [ -e /proc/asound/Dock ]; then
export ALSA_CARD=Dock
fi
#(it's broken)
#if [ -e /proc/asound/Dock ]; then
# export ALSA_CARD=Dock
#fi
# Nix Shells
. /etc/profile.d/nix.sh
#export NIX_BUILD_SHELL=yash
#stty -ixon # disable <C-s>
# 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
if tty | grep -q '/dev/tty1'; then
startx 2>&1 || vlock
#sudo poweroff
#sleep infinity
fi