Wussten Ihr schon? In Bash kann ((08)) einen Fehler auslösen — weil Zahlen mit führender Null als Oktalzahlen interpretiert werden. 💡 Mit 10#08 erzwingt man Dezimal. Das ist wichtig, wenn man z. B. mit date +%d arbeiten, denn das liefert Werte wie 08 oder 09. #Linux #Bash #ShellTip
Shell Parameter Expansion (Bash Reference Manual)

Shell Parameter Expansion (Bash Reference Manual)

@pfm not to brag (too much) but I'm well beyond that point :D I implemented a small system of fav directory, where each of them gets an alias https://gist.github.com/maxlath/724d015d0144880824c3a65482a38e25
-> that's the simple version, mine also has `before cd` and `after cd` hooks, where I typically `ls` or start a server, etc

I'm not sure I would have implemented it back in the days if I had knew #autojump existed though https://github.com/wting/autojump

#shelltip

.aliases

GitHub Gist: instantly share code, notes, and snippets.

@maxlath no here's 2nd #ShellTip just for you:

# in ~/.bashrc
long=to/some/very/annoyingly/long/path

# in your interactive shell:
cd $long

of course $long makes sense esp. when it refers to a frequently visited directory, so it might make sense to let it point to a root directory of a project or something like that -- so you can:

cd $long/vehicle
cd $long/hair
cd $long/story

I use it a lot and it makes my life better! 

[#shelltip of the day]

cd to/some/very/annoyingly/long/path

# accidentally cd to home directory
cd

# cd back to that previous directory
cd -