ansible/roles/common/templates/profile.sh

25 lines
846 B
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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="[\[\]\u@\h\[\]:\[\]\w\[\]]\[[${prompt_color}m\]\\$\[\] "
unset prompt_color