dotfiles/.bash_extra
Michael Grote 1b53da0091 changed Files: .bash_extra
nvim/init.lua
scripts/setup_minimal.sh

Signed-off-by: Michael Grote <michael.grote@posteo.de>
2024-06-21 11:16:35 +02:00

53 lines
1.3 KiB
Bash

#!/bin/bash
# deaktiviere alias von ll, wird von mir explizit gesetzt
unalias ll 2>/dev/null
# source extra files
source "${HOME}/dotfiles/.bash_aliases"
source "${HOME}/dotfiles/.bash_functions"
source "${HOME}/dotfiles/.bash_ps1"
### PATH
# add my scripts to PATH
PATH=$PATH:"${HOME}/dotfiles/scripts:${HOME}/.bin/nvim-linux64/bin/"
### tmux auto attach
# Check if the user ID is not 0 (root)
if [ "$EUID" -ne 0 ]; then
# then auto attach
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
tmux attach -t default || tmux new -s default
fi
fi
### keychain
eval "$(keychain -q --eval --timeout 60 --agents ssh,gpg)"
export GPG_TTY=$(tty)
### Praktische Dinge
# Deaktiviere FlowControl
# https://unix.stackexchange.com/questions/332791/how-to-permanently-disable-ctrl-s-in-terminal
stty -ixon
# farben fur manpages
# https://opensource.com/article/18/5/bash-tricks
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;33m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;42;30m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;36m'
# bash history bei mehreren Session
shopt -s histappend
# bach History Zeitstempel am Anfang der Zeile
export HISTTIMEFORMAT='[%F_%T] '
# typo bei cd entfernen
shopt -s cdspell
# less mit maus scrollen
export LESS='--mouse --wheel-lines=3 eFRX'