Added bat alias for cat and some home.sh fix.

This commit is contained in:
Johannes Findeisen 2026-09-26 13:34:55 +02:00
commit b4e10acfc8
2 changed files with 6 additions and 5 deletions

View file

@ -4,6 +4,7 @@ alias ....='cd ../../..'
alias .....='cd ../../../..' alias .....='cd ../../../..'
alias c='clear' alias c='clear'
alias cat='bat'
alias gita='git add' alias gita='git add'
alias gitc='git commit' alias gitc='git commit'
@ -16,11 +17,11 @@ alias kubectl="minikube kubectl --"
alias l='ls --color' alias l='ls --color'
alias ls='ls --color' alias ls='ls --color'
alias lsa='ls -a --color' alias lsa='ls --color -a'
alias ll='ls --color -l' alias ll='ls --color -l'
alias lla='ls -la --color' alias lla='ls --color -la'
alias llh='ls -lh --color' alias llh='ls --color -lh'
alias llah='ls -lah --color' alias llah='ls --color -lah'
alias n='nnn -diUxe' alias n='nnn -diUxe'

View file

@ -54,7 +54,7 @@ function home() {
time_diff=$(($current_date-$last_update)) time_diff=$(($current_date-$last_update))
time_diff=$(($time_diff / 60 )) time_diff=$(($time_diff / 60 ))
echo "Time difference: $time_diff minutes." echo "Time difference: $time_diff minutes."
if (( time_diff > 86400 )) || [ "$2" = "f" ]; then if (( time_diff > 1440 )) || [ "$2" = "f" ]; then
echo "Updating home configuration..." echo "Updating home configuration..."
if git pull; then if git pull; then
if git submodule update --init --recursive; then if git submodule update --init --recursive; then