Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias rmignore="git rm --cached `git ls-files -i --exclude-from=.gitignore`"
- alias make="make -j4"
- alias rsync="rsync --progress"
- alias gitsubmodule="git submodule update --init --recursive"
- alias pwdl='pwd -L | sed -e "s|$(realpath ~)|~|"'
- export TZ="America/Sao_Paulo"
- function build_prompt () {
- local res="$?"
- local txt="\[\e]0;\w\a\]\n\[\e[32m\]\u@\h"
- if [ "${res}" -eq "0" ]; then
- txt+=" \[\e[32m\]✔"
- else
- txt+=" \[\e[31m\]✘"
- fi
- PS1="${txt} \[\e[33m\]\w \[\e[38;5;20m\]\D{%F %T}\[\e[0m\]\n\$ "
- }
- PROMPT_COMMAND=build_prompt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement