DEV Community

Share your .bashrc

Mpho Mphego on November 20, 2018

Not sure if this has been done before, but would you care to share your bashrc commands. Below I have listed all my bashrc Note mac user's, i'm ru...
Collapse
 
sudiukil profile image
Quentin Sonrel

Not really a bashrc but my zshrc is available on GitHub (aliases; functions).

Collapse
 
moopet profile image
Ben Sinclair

I've got some on a github repo, under dotfiles/bash that you can look at if you like, though they're nothing special.

# Useful Function
function commiter() {
Enter fullscreen mode Exit fullscreen mode

... I'm glad you commented that one!

Collapse
 
mmphego profile image
Mpho Mphego

Hahaha I just grew tired off committing and pushing Everytime, hence the comment...

Collapse
 
trueneu profile image
Pavel Gurkov

This one is huge. If you ask me, I'd abstract away *mount functions. And I prefer git aliases to live in .gitconfig - they feel as custom commands this way, which is kinda cool.
Also, seems this is not what it claims to be:

# Network Start, Stop, and Restart
alias light='xbacklight -set'
Enter fullscreen mode Exit fullscreen mode
Collapse
 
mmphego profile image
Mpho Mphego

Thanks for the tip, I should probably remove that alias, haven't used it in a while .

Collapse
 
gypsydave5 profile image
David Wickes • Edited

May I humbly submit an addition to your welcome message?

# QOTD
fortune | cowsay
Enter fullscreen mode Exit fullscreen mode
Collapse
 
mmphego profile image
Mpho Mphego

Hahahaha well thank you.
I tried fortune | cowsay -f tux

Collapse
 
deciduously profile image
Ben Lovy

I like your setup! Not unlike what I've got going on in my .emacs, with concerns fully separated - don't know why I never thought to split this up either. Thanks for the ideas!

Collapse
 
mmphego profile image
Mpho Mphego

You are more than welcome.
Initially my bashrc was cluttered, I just recently tried to separate the aliases and functions and it turned out alright - I suppose.

Collapse
 
dmfay profile image
Dian Fay • Edited

I put my zshrc on GitHub along with a bunch of miscellaneous functions.

Collapse
 
mmphego profile image
Mpho Mphego

Never gave zsh a chance, maybe I should look into it.
Thanks for the link ;-)