DEV Community

Discussion on: What are your preferred bash aliases?

Collapse
 
victorysokolov profile image
Viktor Sokolov

One of my favorite aliases is to get a quick answer from StackOverflow
using howdoi package

sudo apt-get install howdoi
alias how="howdoi $* -c"

The cross-platform solution to open current directory form terminal

if [ ! $(uname -s) = 'Darwin' ]; then
    if grep -q Microsoft /proc/version; then
        # Ubuntu on Windows using the Linux subsystem
        alias open='explorer.exe';
    else
        alias open='xdg-open';
    fi
fi

more of my settings can be found here: github.com/victory-sokolov/dotfiles

Collapse
 
josephj11 profile image
Joe

If you like howdoi, check out tldr. It works like man, but only shows usage examples. It's in the regular Ubuntu repos.

Collapse
 
nocnica profile image
Nočnica Mellifera

Definitely going to use this.