summaryrefslogtreecommitdiffstats
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc35
1 files changed, 21 insertions, 14 deletions
diff --git a/.bashrc b/.bashrc
index 34dbd8c..bb08db0 100644
--- a/.bashrc
+++ b/.bashrc
@@ -1,18 +1,25 @@
-# /etc/skel/.bashrc
-#
-# This file is sourced by all *interactive* bash shells on startup,
-# including some apparently interactive shells such as scp and rcp
-# that can't tolerate any output. So make sure this doesn't display
-# anything or bad things will happen !
+#!/bin/bash
+[[ $- == *i* ]] && stty -ixon # Disable ctrl-s and ctrl-q.
+shopt -s autocd #Allows you to cd into directory merely by typing the directory name.
+set -o vi
+export EDITOR='vi'
+export VISUAL='vi'
+export GPG_TTY=$(tty)
+HISTSIZE= HISTFILESIZE= # Infinite history.
+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)\]"
+#export PS1="\[\e[31m\][\[$(tput bold)\]\[\e[m\]\[\e[31m\]!\[\e[m\]\[\e[31m\]\u!\[\e[m\]\[\e[31m\]@\[\e[m\]\[\e[31m\]\h\[\e[m\] \[\e[34m\]\W\[\e[m\]\[\e[31m\]]\[\e[m\]\[\e[31m\]#\[\e[m\] "
-# Test for an interactive shell. There is no need to set anything
-# past this point for scp and rcp, and it's important to refrain from
-# outputting anything in those cases.
-if [[ $- != *i* ]] ; then
- # Shell is non-interactive. Be done now!
- return
-fi
+[ -f "$HOME/.config/shortcutrc" ] && source "$HOME/.config/shortcutrc" # Load shortcut aliases
+[ -f "$HOME/.config/aliasrc" ] && source "$HOME/.config/aliasrc"
+#eval $(dircolors -b $HOME/.dircolors)
+alias ls='ls --color'
+#LS_COLORS='di=1;35:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rpm=90:*.png=35:*.gif=36:*.jpg=35:*.c=92:*.jar=33:*.py=93:*.h=90:*.txt=94:*.doc=104:*.docx=104:*.odt=104:*.csv=102:*.xlsx=102:*.xlsm=102:*.rb=31:*.cpp=92:*.sh=92:*.html=96:*.zip=4;33:*.tar.gz=4;33:*.mp4=105:*.mp3=106'
+export LS_COLORS
+export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
+gpgconf --launch gpg-agent
+echo UPDATESTARTUPTTY | gpg-connect-agent > /dev/null
-# Put your fun stuff here.
+export PATH=$PATH:$HOME/.local/bin:$HOME/.cargo/bin
+[[ $(tty) == "/dev/tty1" ]] && startx && exit