bash hooks + vim clean up

This commit is contained in:
2026-05-06 11:14:48 +02:00
parent e57f0d73a7
commit 478053d6be
12 changed files with 64 additions and 66 deletions
+1
View File
@@ -1 +1,2 @@
#!/bin/env bash
[[ -f "/dev/shm/bash/$BASHPID/oncd" ]] && source "/dev/shm/bash/$BASHPID/oncd"
+3
View File
@@ -0,0 +1,3 @@
#!/bin/env bash
[[ -f "/dev/shm/bash/$BASHPID/onexit" ]] && source "/dev/shm/bash/$BASHPID/onexit"
rm -rf /dev/shm/bash/$BASHPID
+4
View File
@@ -0,0 +1,4 @@
#! /bin/env bash
if [[ -x /usr/bin/neofetch ]]; then
neofetch
fi
+1
View File
@@ -1,2 +1,3 @@
#!/bin/env bash
[[ -f "/dev/shm/bash/$BASHPID/onprompt" ]] && source "/dev/shm/bash/$BASHPID/onprompt"
history -a
-2
View File
@@ -10,5 +10,3 @@ shopt -s globstar 2>/dev/null || true # Recursive globbing
# Auto-correct
shopt -s cdspell
shopt -s dirspell 2>/dev/null || true
[[ -x /usr/bin/neofetch ]] && neofetch
+1 -1
View File
@@ -5,6 +5,6 @@ export HISTCONTROL="ignoreboth:erasedups"
shopt -s histappend cmdhist
export HISTFILESIZE=10000
export HISTSIZE="$HISTFILESIZE"
export HISTIGNORE="?? :but:but rub *:but commit:but ?? ?? :tree:vim:git info:git i:git lazy:git l"
export HISTIGNORE="?? :but:but rub *:but commit:but ?? ?? :tree:vim:git:git info:git i:git lazy:git l"
bind '"\C-@": "\e^I history | grep '\''\e\e^A'\''\e\ei"'
+4
View File
@@ -39,3 +39,7 @@ Development tool configurations including aliases and environment managers.
- Contains development tools and shortcuts
- Environment managers handle Java, Node.js, PHP, Gradle versions
- Automatically sourced by main `.bashrc`
## Todo
- special behaviour inside dolphin? ([`if [[ $(ps -o comm= -p $PPID) == dolphin ]]; then …`](https://unix.stackexchange.com/a/775802))
+1 -2
View File
@@ -1,5 +1,4 @@
# vim: filetype=bash
export OLDPWD="/home/jaandrle/Dokumenty/Projekty/CommaFeedPodcasts"
export OLDPWD="/home/jaandrle/Vzdálené/GitHub/facilitator-network-cell"
export mwdcp='/home/jaandrle/Vzdálené/GitHub/dcp-fe-container-certifedpassport'
export mdde='/home/jaandrle/Vzdálené/GitHub/deka-dom-el'
export mwdgf='/home/jaandrle/Vzdálené/GitHub/DGF-Certified-Supervisory-Academy'