bash: add .bash_profile and .bashrc
authorAmin Bandali <bandali@gnu.org>
Sun, 14 Apr 2019 04:29:02 +0000 (00:29 -0400)
committerAmin Bandali <bandali@gnu.org>
Sun, 14 Apr 2019 04:29:02 +0000 (00:29 -0400)
.bash_profile [new file with mode: 0644]
.bashrc [new file with mode: 0644]

diff --git a/.bash_profile b/.bash_profile
new file mode 100644 (file)
index 0000000..d5f7cc9
--- /dev/null
@@ -0,0 +1,2 @@
+[[ -f ~/.profile ]] && . ~/.profile
+[[ -f ~/.bashrc ]] && . ~/.bashrc
diff --git a/.bashrc b/.bashrc
new file mode 100644 (file)
index 0000000..a355b0c
--- /dev/null
+++ b/.bashrc
@@ -0,0 +1,9 @@
+#
+# ~/.bashrc
+#
+
+# If not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
+alias ls='ls --color=auto'
+PS1='[\u@\h \W]\$ '