summaryrefslogtreecommitdiff
path: root/google-compute-engine/etc/skel/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'google-compute-engine/etc/skel/.bashrc')
-rw-r--r--google-compute-engine/etc/skel/.bashrc41
1 files changed, 41 insertions, 0 deletions
diff --git a/google-compute-engine/etc/skel/.bashrc b/google-compute-engine/etc/skel/.bashrc
new file mode 100644
index 00000000..4ab3831b
--- /dev/null
+++ b/google-compute-engine/etc/skel/.bashrc
@@ -0,0 +1,41 @@
+# ~/.bashrc: executed by bash(1) for non-login shells.
+# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
+# for examples
+
+# If not running interactively, don't do anything
+case $- in
+ *i*) ;;
+ *) return;;
+esac
+
+# don't put duplicate lines or lines starting with space in the history.
+# See bash(1) for more options
+HISTCONTROL=ignoreboth
+
+# append to the history file, don't overwrite it
+shopt -s histappend
+
+# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
+HISTSIZE=1000
+HISTFILESIZE=2000
+
+# check the window size after each command and, if necessary,
+# update the values of LINES and COLUMNS.
+shopt -s checkwinsize
+
+PS1='\u@\h:\w\$ '
+
+# Alias definitions.
+
+if [ -f ~/.bash_aliases ]; then
+ . ~/.bash_aliases
+fi
+
+# Completion
+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