Starship Prompt: Building Custom Modules

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Recently discovered the channel and its good content. Keep up the excellent work!

argonjs
Автор

simple and to the point, thank you :)

a_maxed_out_handle_of__chars
Автор

You had me at stack overflow driven development. I didn't know that I was on Kent Beck's youtube channel.

davemeech
Автор

This was an awesome and helpful walkthrough. Thanks!

PRonYouTube
Автор

You could have probably optimized the performance a little bit by getting rid of the two repeated grep calls and filtering using awk instead, or using pgrep instead of using ps to begin with

pgrep vim

or even

ps aux | awk '/vim/ && !/awk/ { print $2 }'

instead of

ps aux | grep vim | grep -v grep | awk '{ print $2 }'

fahadahaf
Автор

I used crontab to run a command and output the result it to a file. Then I create a custom command to read the file with detect_files option.

DV-mlfm
Автор

When I was tooling around with various shells I'd use a module to check $0 and write the prompt accordingly, a φ (fish) β (bash) ζ (zsh) τ (tcsh) etc., because I'd forget which shell I happened to be using.

Since deleted as I've gone back to bash. Well, actually, 😘Emacs' eshell, so not much time in a terminal these days.

auntiecarol
Автор

I downloaded yesterday thanks to your video but i don't see for a basic use what could i do more than oh-my-zsh, p10k.
I couldn't install plugins on it for history entries

But i ll still keep an eye on it and maybe install for my powershell

moneyfr
Автор

Wow this is awesome I use starship but didn’t think that it could do all this. What colorscheme are you using in vim ?

joselima
Автор

I was attempting to add a custom module to include the date as well as the time, but was unable to display it. Do you have any suggestions as to how that may be accomplished?

TokenMacDude
Автор

To speed up, maybe: ps -e -o comm -t | grep nano | grep -v grep

Deiha-zd
Автор

At this point, you could just throw out zsh, one less sh*t to maintain, I definitely did left zsh and never looked back!
I always hated the bazillion frikin' knobs to tweak, and the whole oh-my-zsh project. I mean why do I have to have a plugin manager for my shell?
Luckily starship is quite cross-shell!
On a similar note, I left nvim for helix. Unfortunately I cannot install it to all of our servers. But the environment on the workstations I use have become leaner, and less of a snowflakes...

Samonitari
Автор

thank you!! i got .cpp and .ino extensions to work. i want to customize for folders too since that would be visually convenient when working with ROS.

is it possible to see the state of the terminal when you've sourced something? e.g `source .bashrc` (trying to see if i can use starship to show which version of ROS i've sourced on the terminal since i usually switch back and forth between ROS1 noetic and ROS2 foxy)

how did you get the +8 -1 git line stuff btw? i have git_branch, git_commit, git_status, git_state already in my format (idk what git_state is?).

can i start tmux automatically when opening a new terminal? i tried putting "tmux" in my .bashrc, which works but always gives me a warning about recursive tmux stuff. is there a workaround or even on starship.toml?

thanks and here's how my ubuntu terminal is looking right now! (:
imgur(dot)com/ONLqSJP

JACOBSAYONO
welcome to shbcf.ru