Skip to content

Instantly share code, notes, and snippets.

@mv
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mv/012e92746547574d7f0d to your computer and use it in GitHub Desktop.
Save mv/012e92746547574d7f0d to your computer and use it in GitHub Desktop.
cat > /etc/skel/.bashrc <<'EOF'
# .bashrc
[ -f /etc/.env-verbose ] && echo "# Inside ~/.bashrc: [$0]"
# Source global definitions
if [ -f /etc/bashrc ]
then . /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
export SYSTEMD_PAGER=""
# User specific aliases and functions
# vim:ft=sh:
EOF
cat > /root/.bashrc <<'EOF'
# .bashrc
[ -f /etc/.env-verbose ] && echo "# Inside ~/.bashrc: [$0]"
# Source global definitions
if [ -f /etc/bashrc ]
then . /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
export SYSTEMD_PAGER=""
# User specific aliases and functions
# vim:ft=sh:
EOF
cat > /etc/skel/.bash_profile <<'EOF'
# .bash_profile
[ -f /etc/.env-verbose ] && echo "# Inside ~/.bash_profile: [$0]"
# Get the aliases and functions
if [ -f ~/.bashrc ]
then . ~/.bashrc
fi
# User specific environment and startup programs
# vim:ft=sh:
EOF
cat > /root/.bash_profile <<'EOF'
# .bash_profile
[ -f /etc/.env-verbose ] && echo "# Inside ~/.bash_profile: [$0]"
# Get the aliases and functions
if [ -f ~/.bashrc ]
then . ~/.bashrc
fi
# User specific environment and startup programs
# vim:ft=sh:
EOF
cat > /etc/skel/.bash_logout <<'EOF'
# ~/.bash_logout
[ -f /etc/.env-verbose ] && echo "# Inside ~/.bash_logout"
# vim:ft=sh:
EOF
cat > /root/.bash_logout <<'EOF'
# ~/.bash_logout
[ -f /etc/.env-verbose ] && echo "# Inside ~/.bash_logout"
# vim:ft=sh:
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment