If you are not in a Python project - there is no Python version (because there is no point in displaying it). But, in a smart way! If you are not in a git repository, it hides the git info. Error indicator if the last command failedĪnd a bazillion other information.How long it took the previous command to execute (if it was longer than a few milliseconds).Python version if you are in a Python project folder (the same applies to Go/Node/Rust/Elm and many other programming languages).git status of the current directory and different symbols, depending on if you have new files, pending changes, stashes, etc.zshrc/ config.fish, and it takes care of the rest. You install it, add one line of config to your. Starship is a prompt that works for any shell. If I had to choose one favorite tool from this whole list - it would be Starship. It stops me from enabling too many plugins and then complaining that it's slow □. Compared with Z shell and Bash, fish has fewer plugins, so it's not the best option if you want to tweak it a lot. If you want to see more resources for fish, check out the awesome-fish repository. I had more plugins in the past (rbenv, pyenv, nodenv, fzf, z), but I switched to different tools to avoid slowing down my shell (a mistake that I did in the past with Z shell). fzf - integrates the fzf tool ( see below) with fish.evanlucas/fish-kubectl-completions - provides autocompletion for kubectl (Kubernetes command line tool).With this plugin, when I run scripts that take longer than a few seconds, I get a macOS notification when they finish. I'm using a Guake style terminal that drops down from the top of the screen when I need it and hides when I don't. I don't have a terminal open all the time. franciscolourenco/done - sends a notification when a long-running script is done.Right now, I'm using Fisher with just three plugins: The easiest way to install them is to use a plugin manager like Fisher, Oh My Fish, or fundle. You can add more features to fish with plugins. Especially if you don't like to tinker with your shell and want to have something that works great with minimal configuration. I usually end up reading the documentation, instead of copy-pasting ready-made scripts from StackOverflow.ĭo I recommend fish? Yes! Switching shells is easy, so give it a try. And there are fewer resources for fish scripts than for bash scripts. I write bash/fish scripts too seldom to memorize the syntax, so I always have to relearn it from scratch. I understand the idea behind this change (Bash is not the easiest language to use), but it doesn't benefit me in any way. You either have to change the incompatible commands to fish scripts or start a Bash session to run the bash scripts. On the other hand, because it's using a different syntax than other shells, you usually can't just paste scripts from the internet. On the one hand, this makes it perfect for beginners, because you don't have to set up anything. It's a great shell with plenty of features out of the box, like the autosuggestions, syntax highlighting, or switching between folders with ⌥+→ and ⌥+←. I've used Bash and Z shell in the past, and currently, I'm using fish. Shell - the most important tool that you use every time you open the terminal. Tools that I use every day # fish shell # litecli and pgcli - like sqlite3 and psql but better.tree - for presenting the content of a folder.colordiff and diff-so-fancy - like diff but with colors.asciinema - record your terminal sessions (and let viewers copy code from those recordings).ctop and lazydocker - monitoring tools for Docker.pipx - install Python packages in isolated environments.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |