From 248c89fbe379dc8e6532b480f559dff407cd4755 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 1 Jun 2025 04:23:22 +0200 Subject: [PATCH] Add profile --- README.md | 3 +++ profile | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 profile 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'