# Whats in your .bashrc

**URL:** <https://forum.endeavouros.com/t/whats-in-your-bashrc/69793>\
**Category:** Linux lounge\
**Created:** [April 2, 2025, 3:57am UTC](https://forum.endeavouros.com/t/whats-in-your-bashrc/69793 "2025-04-02T03:57:18Z")\
**Posts on this page:** 6\
**Page:** 4

<div class="post-metadata">

**Author:** ![MichelN](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/micheln/32/132263_2.png) [@MichelN](https://forum.endeavouros.com/u/MichelN)\
**Post date:** [January 7, 2026, 11:24am UTC](https://forum.endeavouros.com/t/whats-in-your-bashrc/69793/63 "2026-01-07T11:24:41Z")

</div>

Tested and working…thanks 😎

---

<div class="post-metadata">

**Author:** ![MichelN](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/micheln/32/132263_2.png) [@MichelN](https://forum.endeavouros.com/u/MichelN)\
**Post date:** [January 7, 2026, 11:46am UTC](https://forum.endeavouros.com/t/whats-in-your-bashrc/69793/64 "2026-01-07T11:46:43Z")

</div>

@thefrog, for graphical you can use these.

Create file:  
`sudo nano /etc/udev/rules.d/99-usb-sync.rules`

Add rule:  
`ACTION=="add", SUBSYSTEMS=="usb", ENV{UDISKS_MOUNT_OPTIONS_DEFAULTS}="sync"`

Reload udev rules:  
`sudo udevadm control --reload-rules` (or `--reload`)

If it’s not reloading you need to reboot, i chose to reboot because --reload didn’t work. Now it’s working great.

---

<div class="post-metadata">

**Author:** ![thefrog](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/thefrog/32/114250_2.png) [@thefrog](https://forum.endeavouros.com/u/thefrog)\
**Post date:** [January 7, 2026, 12:46pm UTC](https://forum.endeavouros.com/t/whats-in-your-bashrc/69793/65 "2026-01-07T12:46:39Z")

</div>

> [@mbod](#):
>
> `rsync -avuhP "$@" && sync`

thanks for this I updated the function in my bashrc

---

<div class="post-metadata">

**Author:** ![thefrog](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/thefrog/32/114250_2.png) [@thefrog](https://forum.endeavouros.com/u/thefrog)\
**Post date:** [June 23, 2026, 10:23pm UTC](https://forum.endeavouros.com/t/whats-in-your-bashrc/69793/66 "2026-06-23T22:23:45Z")

</div>

Added a few minor things but not much else  
[https://dpaste.com/6E669HWW4](https://dpaste.com/6E669HWW4)

---

<div class="post-metadata">

**Author:** ![Scotty\_Trees](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/scotty_trees/32/29792_2.png) [@Scotty\_Trees](https://forum.endeavouros.com/u/Scotty_Trees)\
**Post date:** [June 24, 2026, 1:22am UTC](https://forum.endeavouros.com/t/whats-in-your-bashrc/69793/67 "2026-06-24T01:22:15Z")

</div>

I tried to balance my `.bashrc` config to keep it minimal, yet practical for my needs as well. I could probably get rid of a few things, but I like what I’ve created so far over the years.

```auto
#
# ~/.bashrc
#
[[$- != *i*]] && return
# ===== Prompt =====
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
# ===== Bash completion =====
[[-r "/usr/share/bash-completion/bash_completion"]] && . "/usr/share/bash-completion/bash_completion"
# ===== Aliases =====
alias ls='ls --color=auto'
alias ll='ls -lha --group-directories-first'
alias la='ls -A'
alias l='ls -CF'
alias grep='grep --color=auto'
alias diff='diff --color=auto'
alias ip='ip --color=auto'
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -I'
alias df='df -h'
alias du='du -h'
alias free='free -h'
# ===== Functions =====
ren() {
    perl-rename '
        s/^(\d)\b/0$1/;
        s/^(\d{2})[.\s-]*/$1. /;
    ' *
}
# ===== Environment =====
export EDITOR="nano"
# ===== History =====
export HISTSIZE=10000
export HISTFILESIZE=20000
export HISTCONTROL=ignoreboth
shopt -s histappend
shopt -s checkwinsize
shopt -s cdspell
# Save history after every command
PROMPT_COMMAND="history -a${PROMPT_COMMAND:+; $PROMPT_COMMAND}"
# ===== Less / Man page colors =====
export LESS="-R"
export MANPAGER="bat -l man -p"
# ===== Startup =====
fastfetch

```

---

<div class="post-metadata">

**Author:** ![Archie1](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/archie1/32/111095_2.png) [@Archie1](https://forum.endeavouros.com/u/Archie1)\
**Post date:** [June 24, 2026, 5:41am UTC](https://forum.endeavouros.com/t/whats-in-your-bashrc/69793/68 "2026-06-24T05:41:32Z")

</div>

Why not put all the aliases in `.bash_aliases`. This will keep the `.bashrc` minimal.

And why do you have in your `.bashrc`

```auto
shopt -s histappend
shopt -s checkwinsize
shopt -s cdspell

```

[Previous page](https://forum.endeavouros.com/t/whats-in-your-bashrc/69793.md?page=3)
