summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorPaweł Dybiec <pawel@dybiec.info>2022-05-04 02:10:28 +0100
committerPaweł Dybiec <pawel@dybiec.info>2022-05-04 02:10:28 +0100
commit8594a505dcbec46bbac28be5b9ceb5ac2cd1a3a6 (patch)
treef96ea4dee378fb939455d517b1ba16bc73d3ef37 /bashrc
Initial commit
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc45
1 files changed, 45 insertions, 0 deletions
diff --git a/bashrc b/bashrc
new file mode 100644
index 0000000..5044329
--- /dev/null
+++ b/bashrc
@@ -0,0 +1,45 @@
+# bashrc
+# If not running interactively, don't do anything
+case $- in
+ *i*) ;;
+ *) return;;
+esac
+
+HISTCONTROL=ignoreboth
+shopt -s histappend
+HISTSIZE=20000
+HISTFILESIZE=20000
+
+shopt -s checkwinsize
+
+# prompt
+PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
+
+# enable color support of ls and also add handy aliases
+if [ -x /usr/bin/dircolors ]; then
+ test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
+ alias ls='ls --color=auto'
+ alias grep='grep --color=auto'
+ alias fgrep='fgrep --color=auto'
+ alias egrep='egrep --color=auto'
+fi
+
+
+
+# enable programmable completion features (you don't need to enable
+# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
+# sources /etc/bash.bashrc).
+if ! shopt -oq posix; then
+ if [ -f /usr/share/bash-completion/bash_completion ]; then
+ . /usr/share/bash-completion/bash_completion
+ elif [ -f /etc/bash_completion ]; then
+ . /etc/bash_completion
+ fi
+fi
+
+
+bind '"\e[A": history-search-backward'
+bind '"\e[B": history-search-forward'
+export GPT_TTY=$(tty)
+alias t='tmux new-session -A -s main'
+alias vim='nvim'