Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. alias rmignore="git rm --cached `git ls-files -i --exclude-from=.gitignore`"
  2. alias make="make -j4"
  3. alias rsync="rsync --progress"
  4. alias gitsubmodule="git submodule update --init --recursive"
  5. alias pwdl='pwd -L | sed -e "s|$(realpath ~)|~|"'
  6. export TZ="America/Sao_Paulo"
  7.  
  8. function build_prompt () {
  9. local res="$?"
  10. local txt="\[\e]0;\w\a\]\n\[\e[32m\]\u@\h"
  11.  
  12. if [ "${res}" -eq "0" ]; then
  13. txt+=" \[\e[32m\]✔"
  14. else
  15. txt+=" \[\e[31m\]✘"
  16. fi
  17.  
  18. PS1="${txt} \[\e[33m\]\w \[\e[38;5;20m\]\D{%F %T}\[\e[0m\]\n\$ "
  19. }
  20.  
  21. PROMPT_COMMAND=build_prompt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement