summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-04-02 06:21:45 -0700
committerxyz <gky44px1999@gmail.com>2021-04-02 06:21:45 -0700
commit362867e040b5518f92c06e2e50837742e55d6c13 (patch)
treedbc076a6377fd3b168b69c7e3bfb8dc0fb7b8e0f
parent708f3b91f868b341bc82101c1bf50c1fb9af8fdb (diff)
auto startx
-rw-r--r--.bashrc7
1 files changed, 6 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index f7ecf887..9af00866 100644
--- a/.bashrc
+++ b/.bashrc
@@ -5,9 +5,13 @@
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
-alias ls='ls --color=auto'
+alias ls='ls -lah --color=auto'
PS1='[\u@\h \W]\$ '
+if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
+ exec startx
+fi
+
alias cfgc='/usr/bin/git --git-dir=$HOME/.mycfg_cross_platform/ --work-tree=$HOME'
alias cfgl='/usr/bin/git --git-dir=$HOME/.mycfg_local/ --work-tree=$HOME'
@@ -17,3 +21,4 @@ export XDG_DATA_HOME="$HOME/.local/share"
export SSH_AUTH_SOCK="XDG_RUNTIME_DIR/ssh-agent.socket"
+export MANPAGER='nvim +Man!'