$ cd ..
$ ls
$ cd ..
$ ls
"hmm yes.. everything seems to be in order"
$ 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
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.
cs () {
cd $1;
ls ${@:2}
}
You (probably) only want to pass the first argument to cd
, this'll send the rest to ls
.
Did that years ago, just called it cds. I also have an "up" command which is an alias to "cds ..". Oh, and I have a "setup server_name" they copy all my aliases to a server and create an alias that allow me to "ssh -A server_name" using only server_name.
Alternatively, you could use a TUI file manager. Once you get the navigation down you can manage things pretty quickly. Especially with ones that have options for dual directory layouts, like Midnight Commander or vifm.
It is called windows 2000 explorer and it's great for file operations :) In Linux i have yet to find a really good replacement ;(
Try Dolphin. Press F4 to open the terminal view. It stays in dync with the gui so if you use cd in the terminal, the contents of the new folder will be shown.
pwd
seems more appropriate than ls
cd ..
⭡ ⏎
⭡ ⏎
⭡ ⏎
Oh, shit.
square
In your rc:
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
Usage:
1/2/3 $ ...
1 $
.....
for zsh users
Excuse me what? I've been multi cd'ing for years like a chump?
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
for i in { 1..4 }; do cd ..; done
Try zoxide
Installing zoxide led me to installing fzf, which has improved my terminal experience by about 35%, I already installed it in all the machines I'm managing
Got any more tools? :)
Check out Atuin. Its another must have for me. When you push up arrow, it shows your command history in a very pleasing list. You can even generate account keys to migrate your history between PCs, but I've never bothered with it. You can also search past commands on the history menu.
You don't need an account for it. That's only for the migration keys.
I don't think there's anything too unusual but here's my nix packages
{ pkgs }:
with pkgs; [
# General packages for development
copier # Project scaffolding and templating
fastlane
jujutsu
just # Project specific command runner
mise # Tool version manager
ngrok # Public tunnel ngrok.com
sqlite
pre-commit
trufflehog # Scan for secrets in code repositories
# Encryption and security tools
age
age-plugin-yubikey
gnupg
libfido2
# Container tools and SDKs
colima
podman
podman-compose
# Media-related packages
dejavu_fonts
ffmpeg
hack-font
noto-fonts
noto-fonts-emoji
meslo-lgs-nf
yt-dlp
# Text and terminal utilities
bat
btop # resource monitor
#chezmoi # manage dotfiles; to try
coreutils # GNU system tools
curl
delta
exiftool
f3 # flash drive verification tool
fd # alternate find command
fzf
htop
iftop
jq # command line JSON tool
# openssh
ripgrep
s3cmd
shellcheck # static analysis for shell scripts
tree
tmux
unison
unrar
unzip
wget
zip
zoxide
# fish specific
fishPlugins.foreign-env
fishPlugins.forgit
fishPlugins.fzf-fish
fishPlugins.tide
fishPlugins.z
# Python packages
python3
virtualenv
]
zoxide, btop and lazygit are a must for me in any computer.
I alias ..
to cd ..
Works for me 🤷🏻
I do that too!
I also alias ...
to cd ../..
. I'll be honest, I often forget to do it, but in theory it can speed things up.
I use a lot cd -
(go to previous) or just cd
to go home.
i use fish shell with https://github.com/nickeb96/puffer-fish
basically when i type ...
it expands to ../..
and adds another /..
for every additional dot i type
its similar to what the zsh users in the comment section are doing
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 day
cd ..
!!
!!
!!
alias ..='cd ..' #: up one directory
alias ...='cd ../..' #: up two directories
Tbf it is less key presses since you can generally just recall the last command.
.....
Easiest solution, use fish instead of bash! Default fish keybindings will allow you to just type . . or name a directory similar to how you could do with Zoxide.
Also, wait until you find about pushd and popd ;)
~$ 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 with dc
and sl
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.
Wait until we tell them about autojump
cd .../...
Why no cd /////// speceficterm if you know how deep it is
Those are supposed to be stars. I'm not fixing this on a phone
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
sudo
in Windows.Please report posts and comments that break these rules!
Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.