Last active
January 21, 2017 11:34
-
-
Save ceving/c97499e5788428cf66970bea0b42a03c to your computer and use it in GitHub Desktop.
Customize HOME directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
set -eu | |
cat <<EOF > "$HOME"/.bashrc | |
[ -z "$PS1" ] && return | |
shopt -s histappend | |
shopt -s checkwinsize | |
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" | |
alias ll='ls -l' | |
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then | |
source /etc/bash_completion | |
fi | |
export PS1='\u@\h:\w\$ ' | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment