Everyone has their favourite aliases for git and the shell. I have written about my git aliases before but not my shell aliases.
It is not a long list, but I have some that I find useful that you may find useful as well. Currently, my preferred shell is zsh. Here is what I currently have in my config.
alias rimraf='rm -rf'
alias flushdns='sudo killall -HUP mDNSResponder'
alias zshconfig='vi ~/.zshrc'
alias nr='npm run'
alias ni='npm i'
alias y='yarn'
alias story='yarn storybook'
alias code='code-insiders'
alias tw='yarn test:watch'
alias '$'=''
alias zshconfig='vi ~/.zshrc'
What's in your shell aliases?
Photo by Krzysztof Niewolny on Unsplash
Oldest comments (16)
If you're wondering what Edge doing in there, I decided to take it for a spin for the next little while as it is a new browser on the block.
It is Chromium-based, so I expect it to pretty much behave like Chrome, and Brave, another browser I was using. I am still curious what will make someone grab one Chromium browser over the other. I wrote about it here.
The Chromium Browser Wars
Nick Taylor ・ May 21 ・ 2 min read
I think in the case of Edge, most people that get new PC laptops/desktops will probably just go with it unless they are already a die hard Chrome fan, but we will see.
Hell yes. I still haven't outgrown my Gentoo phase, so I update with
u
:On my aging laptop running Void:
There's also this monstrosity for building a new kernel in
/root/.bashrc
:I'm not even sorry. I had a similar line for cleaning up artifacts from an old kernel but it got gross enough to merit its own script.
In a similar vein to
eup
foremerge
, there's Rust and OCaml toolchains:lias chrome=
should bealias chrome
.I use
g
for git as well. 🔥 I updated the post. I must have missed that line as I was only copying part of my .zshrc file. 🙃zshconfig
saves one character fromvi ~/.zshrc
at the expense of having a command that only works on your own systems.That
edge
one makes sense, though.Ubuntu update on demand:
Open this alias file (I use Visual Studio Code, hence the
code
):Load aliases:
Here's mine
I don't believe in one character aliases. I utilize tabs to reduce keystrokes. My aliases are some per-configuration for tools. And some personalized tools are prefixed with
fl_
or withflp_
I also have some utility functions like
My Bash Equivalent aliases
My Fish functions (What fish uses instead of Alias)
Why not?