diff --git a/README.md b/README.md index 8d27529..a5cb3e0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # linux-profile +''' bash +source profile +''' diff --git a/profile b/profile new file mode 100644 index 0000000..cc1b6ba --- /dev/null +++ b/profile @@ -0,0 +1,17 @@ +#!/bin/bash + +clrreset='\e[0m' +clrwhite='\e[1;37m' +clrgreen='\e[1;32m' +clrred='\e[1;31m' +export PS1="\[$clrwhite\]\w \`if [ \$? = 0 ]; then echo -e '\[$clrgreen\]'; else echo -e '\[$clrred\]'; fi\`\\$ \[$clrreset\]" + +alias l='ls --color=auto -lAh --time-style long-iso' +alias ls='ls --color=auto -lh --time-style long-iso' +alias ll='ls --color=auto -lah --time-style long-iso' +alias cd..='cd ..' +alias f='find . -name' +alias ff='find / -name' +alias fif='grep -rnw . -e' +alias grep='grep --color=auto' +alias ip='ip -c'