feat: update 2026

This commit is contained in:
2026-05-11 14:52:42 +02:00
parent d5219b142a
commit 5c231872df
5 changed files with 95 additions and 161 deletions

30
.bash_config Normal file
View File

@@ -0,0 +1,30 @@
#
# ~/.bash_config
#
# Ward Truyen's Config for bash
# If not running interactively, stop
[[ $- != *i* ]] && return
# personal aliases
alias la='ls -a'
alias ll='ls -lh'
alias cp='cp -v'
alias mv='mv -v'
alias rm='rm -v'
alias ..='cd ..'
# colored output
alias ls='ls --color=auto'
alias grep='grep --colour=auto'
alias egrep='egrep --colour=auto'
alias fgrep='fgrep --colour=auto'
# Colorful PS1
if [[ ${EUID} == 0 ]] ; then
# Root
PS1='[\[\e[37m\]root\[\e[0m\]@\[\033[01;31m\]\h\[\033[01;36m\] \W\[\033[01;31m\]]\[\033[00m\]]\#\$ '
else
# User
PS1='[\[\e[33m\]\u\[\e[0m\]@\[\e[32m\]\h \[\e[1m\]\W\[\e[0m\]]\#\$ '
fi