aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorAdrian Kummerlaender2016-05-28 16:58:45 +0200
committerAdrian Kummerlaender2016-05-28 16:58:45 +0200
commitd2b24636731c0555f6561cee2eb9b4d4d375aa3b (patch)
tree5dcbec0d208b934a89c61f1788f5433d422fda6f /bash
parent5ce877c5bcd484a64c4457ace746013af977642f (diff)
downloaddotfiles-d2b24636731c0555f6561cee2eb9b4d4d375aa3b.tar
dotfiles-d2b24636731c0555f6561cee2eb9b4d4d375aa3b.tar.gz
dotfiles-d2b24636731c0555f6561cee2eb9b4d4d375aa3b.tar.bz2
dotfiles-d2b24636731c0555f6561cee2eb9b4d4d375aa3b.tar.lz
dotfiles-d2b24636731c0555f6561cee2eb9b4d4d375aa3b.tar.xz
dotfiles-d2b24636731c0555f6561cee2eb9b4d4d375aa3b.tar.zst
dotfiles-d2b24636731c0555f6561cee2eb9b4d4d375aa3b.zip
Only use fish as graphical shell
This mitigates some issues with correctly loading the system locales
Diffstat (limited to 'bash')
-rw-r--r--bash/.bashrc10
1 files changed, 10 insertions, 0 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
new file mode 100644
index 0000000..eb33c7a
--- /dev/null
+++ b/bash/.bashrc
@@ -0,0 +1,10 @@
+# If not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
+if [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]]; then
+ exec startx
+fi
+
+if [[ "$TERM" != linux ]]; then
+ exec fish
+fi