summaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash')
l---------bash/.bash_profile1
-rw-r--r--bash/.bashrc25
-rw-r--r--bash/.profile5
3 files changed, 31 insertions, 0 deletions
diff --git a/bash/.bash_profile b/bash/.bash_profile
new file mode 120000
index 0000000..aa7da3a
--- /dev/null
+++ b/bash/.bash_profile
@@ -0,0 +1 @@
+.profile \ No newline at end of file
diff --git a/bash/.bashrc b/bash/.bashrc
new file mode 100644
index 0000000..cc17a89
--- /dev/null
+++ b/bash/.bashrc
@@ -0,0 +1,25 @@
+#
+# g3tchoo's bashrc
+#
+
+# set prompt
+export PS1='\[\e[0;93m\][\[\e[0;96m\]\u\[\e[0;95m\]@\[\e[0;96m\]\h \[\e[0;92m\]\w\[\e[0;93m\]]\[\e[0;90m\]$\[\e[0m\] '
+
+# options
+shopt -s autocd
+shopt -s dotglob
+shopt -s histappend
+set -o emacs
+
+# defaults
+export EDITOR='nvim'
+export VISUAL='nvim'
+export TERM=xterm-256color
+
+# alias
+alias vim='nvim'
+alias ls='exa'
+
+# Use bash-completion, if available
+[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
+ . /usr/share/bash-completion/bash_completion
diff --git a/bash/.profile b/bash/.profile
new file mode 100644
index 0000000..e297b42
--- /dev/null
+++ b/bash/.profile
@@ -0,0 +1,5 @@
+# add user's bin directory to path
+if [ -d $HOME/.local/bin ]
+then
+ export PATH=$HOME/.local/bin:$PATH
+fi