4 ms·
echo "cd /your/favorite/folder" >> ~/.bashrc
by aaronbasssett 13y ago
echo "cd /your/favorite/folder" >> ~/.bashrc
- lukeholder 13y agoThis is by far is the best option, its still user based so it will take me where I want.
- ChristianBundy 13y agoAbsolutely – I'd definitely recommend that this is used in favor of my utility if you're always going to the same directory. I originally wrote a util that outputs your current username, hostname, and path (https://github.com/christianbundy/whereami https://github.com/christianbundy/whereami) so that you can either share or save it somewhere, but since SSH doesn't handle file paths by default I made a utility that does. :)
- mhandley 13y agoI think you've done an excellent job of pointing out that ssh should just be capable of doing this by default. Like many such things, it's obvious with hindsight. But somehow I never thought of it before.