Add some basic shell profile configuration
This commit is contained in:
parent
33a203cc94
commit
ed4fe73467
@ -7,3 +7,5 @@
|
||||
- name: configure timezone
|
||||
timezone: name=America/Chicago
|
||||
notify: restart cron
|
||||
- name: configure shell profile
|
||||
template: src=profile.sh dest=/etc/profile.d/50-ansible.sh
|
||||
|
24
roles/common/templates/profile.sh
Normal file
24
roles/common/templates/profile.sh
Normal file
@ -0,0 +1,24 @@
|
||||
# vim:ft=sh
|
||||
# This file managed via Ansible; do not edit!
|
||||
# If you want to override any of this, make another script in /etc/profile.d
|
||||
# Or better yet, if you're just an unprivileged user, make a ~/.bashrc
|
||||
|
||||
# If not running interactively, bail
|
||||
[ -z "$PS1" ] && return
|
||||
|
||||
# Basic shell aliases that I use all the time
|
||||
alias doot="echo doot doot"
|
||||
lsarguments='-Fh --color=auto --group-directories-first'
|
||||
alias l="ls -l --file-type $lsarguments"
|
||||
alias la="ls -A --file-type $lsarguments"
|
||||
alias ls="ls $lsarguments"
|
||||
alias ll="ls -Al --file-type $lsarguments"
|
||||
unset lsarguments
|
||||
|
||||
# Set some bash-specific stuff
|
||||
[ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ] || return
|
||||
# Like a fancy prompt
|
||||
prompt_color=32
|
||||
[ "$UID" -eq "0" ] && prompt_color=31
|
||||
export PS1="[\[[32;1m\]\u@\h\[[21m\]:\[[34m\]\w\[[0m\]]\[[${prompt_color}m\]\\$\[[0m\] "
|
||||
unset prompt_color
|
Loading…
Reference in New Issue
Block a user