I guess if you enjoy being a virgin that much you can do it that way.
$ cd .. $ ls $ cd .. $ ls
“hmm yes… everything seems to be in order”
I need a shell/plugin/tool/whatever that always shows me the content of the current dir in a little popup or something.
Anything I do in the shell is like cd this, ls, cd there, ls *, I feel like a have the navigational awareness of a amnesiac goldfish
It is called windows 2000 explorer and it’s great for file operations :) In Linux i have yet to find a really good replacement ;(
Put this in bashrc or whatever flavour of shells’s bashrc you use:
function cs () { cd “$@” && ls }
I didnt remember the function sintax of bash so I just copied it from SO.
that, or you have to make ABSOLUTELY SURE that you haven’t accidentally pressed a button on your keyboard that has inevitably resulted in the total destruction of the directory contents
Sometimes I throw off the linux admin reading my log by throwing in a pwd before going to the next one. Know it’s not gonna be in that directory you know?
cd ..
⭡ ⏎
⭡ ⏎
⭡ ⏎
Oh, shit.
square
cd … ls cd … ls cd … ls cd … ls
Depending on where you are, maybe just “cd”.
Smh when are you going to upgrade to dvd
I alias
..
tocd ..
Works for me 🤷🏻
I do that too!
I also aliasto
cd ../..
. I’ll be honest, I often forget to do it, but in theory it can speed things up.
Or the alias I have set up
……
I kept saying “cd up” in my mind so I just made an alias for
cdu
, became a reflex within the next dayOnce you’ve typed … you know if you type more dots it’s to go up more dir, so you don’t really need two dots for each additional dir.
Yeah so it was five dots for four directories up. I also have
… for 2
And
…. for 3
I don’t think I have one for 5. I’d have to look. I also use autojump and fzf which is very useful.
Ya, this is the way. I use
all the time
cd …
<Up arrow>
<Up arrow>
<Up arrow>
<Up arrow>
cd …
history
!1
!1
!1
…
cd .. !! !! !!
Tbf it is less key presses since you can generally just recall the last command.
Me doing it the worst way > opening up dolphin(file explorer) navigating to the folder then opening terminal there.
Doesnt dolphin has a terminal in built so you can watch files in gui and still use cli?
Try zoxide
zoxide, btop and lazygit are a must for me in any computer.
Yup. I usually have zoxide installed. It’s grand.
cd .. ls ls -la cd .. ls cd .. rm -rf /
I’ve used a script that made ‘up 4’ a thing. Forgot to migrate it though.
Biggest issue I have with custom macros is I’m logging into like 5 different machines a day. Don’t wanna keep copying over my custom bash files. Prefer built-in commands.
Yeah, I get that. But I’m traversing my machine a lot while developing, so I want that as hassle free as possible.
Me too. Would love a tool that allows me to have bells and whistles on my remote machines without having to install extra packages on them.
Heyy I have that in my .bashrc
Works a charmHad it in my .zshrc. I should look for it, it was helpful
~$ mkdir -p 1/2/3/4 ~$ pushd 1 ~/1 ~ 1$ pushd 2/3/4 ~/1/2/3/4 ~/1 ~ 4$ popd ~/1 ~ 1$
The
history
of the CTO at a previous job was filled withdc
andsl
because he was a fucking moron. Yes I’m still bitter that he earned way more money than me who had to fix all his mess.You could have gifted him some silly fun with the
sl
package.