Hacker Newsnew | past | comments | ask | show | jobs | submit | GNOMES's commentslogin

This gets shared a ton, but the old Bell Labs video from 4:56 to 10:52 is still the best way I have seen pipes explained:

https://www.youtube.com/watch?v=tc4ROCJYbm0


Nit: You can get a link to a specific time in the video by clicking the "share" button and ticking "start at": https://youtu.be/tc4ROCJYbm0?&t=296

Great video, when I first watched it, it switched my thinking from "why is *nix so hard to use" to understanding they were really trying to build with the user in mind and to learn more about the "*nix way" to work with it, not against it.

It's amazing how these ideas conceived almost 50 years ago still are helpful for new computer users today. Just goes to show how well planned it was.

This article is making me laugh.

Guy I used to play Diablo + Destiny with mentioned once that he had just sold a knife in CS for 4k, and was going to buy his first (used) car with it.

We thought he was joking.


I sold my old skins CS from 2013 last month. I bought a Pixel 10 Pro with the proceeds and I still have some cash in my wallet.

So this article is very funny to me too.

edit: I did try to warn you all: https://news.ycombinator.com/item?id=44943123


I use my "dc" command to reverse "cd" frequently https://gist.github.com/GNOMES/6bf65926648e260d8023aebb9ede9...

Ex:

    > echo $PWD
    /foo/bar/batz/abc/123

    > dc bar && echo $PWD
    /foo/bar
Useful for times when I don't want to type a long train of dot slashes(ex. cd ../../..).

Also useful when using Zoxide, and I tab complete into a directory tree path where parent directories are not in Zoxide history.

Added tab complete for speed.


That's pretty neat. Nice.


Has "dc" the calculator fallen this far out of favor?! :)

> dc is the oldest surviving Unix language program.

https://en.wikipedia.org/wiki/Dc_%28computer_program%29

I used "dc" (the calculator) just earlier this week. Kids these days? :)


I have been testing this as a daily driver since the last big mention on HN to simplify my .bashrc file.

I use it with `eval "$(zoxide init bash --cmd cd)"` so I can continue to use CD due to muscle memory.

    - I like that if there are multiple /foo directories known by Zoxide, say /foo/ and /abc/foo/, that you can do `cd abc foo` to go the path containing both.

    - I am not a fan of having to do `cd foo**` for tab completion to folders outside CWD. I feel it slows me down as a tab complete fanatic.

    - Also don't enjoy if I `cd foo/bar/batz` directly, then try `cd bar`, Zoxide has no reference. You would need to CD into each directory individually to build the database. I have seen scripts kicking around online to put a complete directory structure into Zoxide database by CD'ing to each subdirectory for you.
Not sure if I am officially sold, or I'll go back to aliases and simple tab completes forwards, and backwards (logic I use for tab complete backwards to exact directory name backwards from CWD instead of `cd ../../../etc` https://gist.github.com/GNOMES/6bf65926648e260d8023aebb9ede9...)


I have been tempted to drop tmux locally for native Ghostty panes/tabs, but I prefer the single height tmux status bar with window list only (set -g status-left '' + set -g status-right '') vs the thicker window decorations using macos-titlebar-style = tabs.

I did come up with Ghostty bindings to replicate my tmux settings if it helps anyone (my tmux leader is ctrl + space):

    # clear default bindings + add paste back
    keybind=clear
    keybind=super+v=paste_from_clipboard

    # navigate panes
    keybind=ctrl+h=goto_split:left
    keybind=ctrl+j=goto_split:bottom
    keybind=ctrl+k=goto_split:top
    keybind=ctrl+l=goto_split:right
    keybind=ctrl+space>shift+apostrophe=new_split:down
    keybind=ctrl+space>shift+five=new_split:right
    keybind=ctrl+space>space=equalize_splits
    keybind=ctrl+space>z=toggle_split_zoom

    # navigate tabs
    keybind=ctrl+space>c=new_tab
    keybind=ctrl+space>one=goto_tab:1
    ...
    keybind=ctrl+space>zero=goto_tab:10


Nice, I came up with something similar when trying ghostty. Were you able to replicate/setup continuous key hold for resizing? The way I have it it tmux is that doing leader,Shift+hold h/i/k/j continually resizes a pane while I keep holding for example Shift+h. But I wasn’t able to replicate it in ghostty


Never realized you can do that. Can you share that tmux binding? Right now I use `bind -r Space next-layout` for resizing (spam repeatedly).


Hey. Not sure what's triggering it from the tmux.conf, i think it's just the `-r` like you have ? I think it stands for 'repeat'. Perhaps you are already doing the same thing, spam resize? I have something like `bind -r H resize-pane -L 1`, so when I hit my <leader> and then hold capital H (shift+h), it just keeps resizing by 1 unit of size.

other parts of my config that could be relevant, using with iterm2.

``` bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R bind -r H resize-pane -L 1 bind -r J resize-pane -D 1 bind -r K resize-pane -U 1 bind -r L resize-pane -R 1 set -g mouse on bind \\ split-window -h -c '#{pane_current_path}' bind - split-window -v -c '#{pane_current_path}' set -g focus-events on setw -g aggressive-resize on set -g display-time 4000 set -s escape-time 0 ```


The fact that Family Link app on Android doesn't have this feature drives me crazy.

Youtube kids exists, but far too many channels are not available without manual intervention.


I had to do something like this with Ansible's get_url module once.

Was having issues getting module to download an installer from a vendors site.

Played with Curl/WGET, but was running into the same, while it worked from a browser.

I ended up getting both Curl + get_url to work by passing the same headers my browser sent such as User-Agent, encoding, etc


I thought the initial wording/hype was around poorly phrased lawyer speak for "you give FF permission to interact (post/get requests) with a web page as a browser. Don't sue us".

The whole some may consider it "legally selling your data" proves this is not just a Terms of Use change in good faith.


Read again, they are addressing two unrelated wording changes in two separate documents.


Tooling looks useful, but still trying to understand Dev containers themselves.

Why use one of these premade container images vs using a base image, adding extra packages/layers as needed?


I use an Array + Sed to go backwards in path to an exact directory without having to spam cd ..:

https://gist.github.com/GNOMES/6bf65926648e260d8023aebb9ede9...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: