added debian bashrc

This commit is contained in:
2026-05-01 15:01:37 +01:00
parent 21316475e4
commit aec32d135b
2 changed files with 77 additions and 3 deletions
+76
View File
@@ -0,0 +1,76 @@
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
# User specific aliases and functions
if [ -d ~/.bashrc.d ]; then
for rc in ~/.bashrc.d/*; do
if [ -f "$rc" ]; then
. "$rc"
fi
done
fi
unset rc
alias HandBrakeCLI='flatpak run --command=HandBrakeCLI fr.handbrake.ghb'
export SSH_AUTH_SOCK=$HOME/.bitwarden-ssh-agent.sock
# Help Sheet
function helpme() {
echo -e "\e[32m--------- System Update ---------\e[0m"
echo -e "update : System Update"
echo -e "cleanup : Autoremove Packages"
echo -e ""
echo -e "\e[32m------------- Files -------------\e[0m"
echo -e "llt : Tree View"
echo -e "pack : pack compressed.tar.xz /folder/file1.txt /folder/folder2"
echo -e "unpack : unpack file.tar.xz"
echo -e "size : List files and sizes"
echo -e "zi : See past filepaths"
echo -e "ctl+R : Command history"
echo -e "alt+C : fzf search subdirectories"
echo -e ""
echo -e "\e[32m------------- Docker ------------\e[0m"
echo -e "dup : Docker compose up -d"
echo -e "ddown : Docker compose down "
echo -e "dupdate : Docker compose down, pull, up"
echo -e "drestart : Docker compose restart"
echo -e "dlog : Docker compose logs"
echo -e ""
}
alias update="sudo apt update && sudo apt upgrade -y"
alias cleanup="sudo apt autoremove"
alias ..="z .."
alias ...="z ../.."
alias cd="z"
alias ll="lsd -1"
alias llt="lsd --tree"
alias reload="source ~/.bashrc"
alias rip='abcde -c ~/.abcde.conf'
alias size="du -shc"
alias nano="micro"
alias dup="docker compose up -d"
alias ddown="docker compose down"
alias dupdate="docker compose down && docker compose pull && docker compose up -d"
alias drestart="docker compose restart"
alias dlog="docker compose logs"
alias star-update="sudo -v && cd ~/.bash && git pull https://git.marlow.quest/ash/Starship.git && chmod +x install-debian.sh && ./install-debian.sh && source ~/.bashrc"
alias star-edit="nano ~/.config/starship.toml"
alias pack="tar -cvJf" # pack compressed.tar.xz /folder/file1.txt /folder/folder2
alias unpack="tar -xvf"
eval "$(starship init bash)"
eval "$(fzf --bash)"
eval "$(zoxide init bash)"
cd
+1 -3
View File
@@ -80,13 +80,11 @@ if [ -f ".bashrc" ]; then
if [ ! -L ~/.bashrc ] && [ ! -f ~/.bashrc.bak ]; then if [ ! -L ~/.bashrc ] && [ ! -f ~/.bashrc.bak ]; then
cp ~/.bashrc ~/.bashrc.bak cp ~/.bashrc ~/.bashrc.bak
fi fi
cp -f .bashrc ~/.bashrc && echo "Done." cp -f .bashrc_debian ~/.bashrc && echo "Done."
else else
echo "Skipped (.bashrc not found)." echo "Skipped (.bashrc not found)."
fi fi
# --- 5. Refresh Kitty ---
echo "-----------------------------------------------" echo "-----------------------------------------------"
echo "✅ All set! Terminal Restarting." echo "✅ All set! Terminal Restarting."