←back to thread

2039 points Gadiguibou | 1 comments | | HN request time: 0.345s | source
Show context
thomasahle ◴[] No.36499506[source]
I just tried the following: I copied all of my ~/.bash_history into GPT and asked it for some commands that would save me time. It didn't quite work to identify "bad patterns" as I had hoped, but it did suggest the following:

1. bat: A `cat` clone with syntax highlighting and Git integration.

2. htop: Interactive process viewer, a better alternative to `top`.

3. fzf: Command-line fuzzy finder to quickly search files, command history, etc.

4. tldr: Community-driven man pages with practical examples.

5. ripgrep (rg): Extremely fast text search tool, recursively searches directories for a regex pattern.

6. tmux: Terminal multiplexer to run multiple terminal sessions within a single window.

7. autoenv: Automatically source environment variables based on the current directory.

8. hub: Extends git with extra features and commands for GitHub.

9. ncdu: Disk usage analyzer with an ncurses interface.

10. jq: Lightweight command-line JSON processor.

11. sshfs: Mount a remote filesystem using SFTP.

12. watch: Execute a program periodically, showing output fullscreen.

13. fd: Simpler and faster alternative to `find`.

14. z: Jump around directories based on frequent use.

15. lazygit: Simple terminal UI for git commands.

Most of them I already knew, but z seems like an interesting tool. The docs are here <https://github.com/rupa/z>:

       z foo         cd to most frecent dir matching foo

       z foo bar     cd to most frecent dir matching foo, then bar

       z -r foo      cd to highest ranked dir matching foo

       z -t foo      cd to most recently accessed dir matching foo

       z -l foo      list all dirs matching foo (by frecency)
Might start using it, if I'm not too stuck in my habits.
replies(2): >>36499983 #>>36510051 #
1. tambourine_man ◴[] No.36499983[source]
>I copied all of my ~/.bash_history into GPT

I wouldn't do that. I treat ChatGPT as public.

But it's a good list nevertheless