Start i3 using startx (no DM anymore)
This commit is contained in:
21
bash.org
21
bash.org
@@ -114,20 +114,10 @@ dircolors --print-database uses its own built-in database instead of using /etc/
|
||||
export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]"
|
||||
#+END_SRC
|
||||
|
||||
** SSH Agent
|
||||
#+begin_src bash
|
||||
# if ! pgrep -u "$USER" ssh-agent > /dev/null; then
|
||||
# ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env"
|
||||
# fi
|
||||
# if [[ ! "$SSH_AUTH_SOCK" ]]; then
|
||||
# eval "$(<"$XDG_RUNTIME_DIR/ssh-agent.env")"
|
||||
# fi
|
||||
#+end_src
|
||||
|
||||
** Rebind up and down arrow keys to search through bash history
|
||||
#+BEGIN_SRC bash
|
||||
bind '"\e[A": history-search-backward'
|
||||
bind '"\e[B": history-search-forward'
|
||||
bind '"\e[A": history-search-backward'
|
||||
bind '"\e[B": history-search-forward'
|
||||
#+END_SRC
|
||||
|
||||
** Aliases
|
||||
@@ -387,6 +377,13 @@ This is important for termite to work when sshing in remote machines.
|
||||
export PATH
|
||||
#+END_SRC
|
||||
|
||||
** Automatically run =startx=
|
||||
#+begin_src bash
|
||||
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
|
||||
exec startx
|
||||
fi
|
||||
#+end_src
|
||||
|
||||
* Input
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.inputrc
|
||||
|
||||
Reference in New Issue
Block a user