#vim powerline
Explore tagged Tumblr posts
Text
PragmataPro Semiotics
PragmataPro Semiotics project web page is live Thanks to Aaron Madlon-Kay Type a keyword to find one of the 12,000 symbols included in PragmataPro
#pragmatapro#coding font#cheat sheet#unicode#semiotics#codepoints#devicons#nerd fonts#font awesome#vim powerline#vim
0 notes
Text
Kitty, Newsboat and MPV
Lately I have been looking for different ways to watch videos online and I have found a solution that surprisingly clean. The goal for this setup was to add some of my favourite youtube channels into an easy-to-access list and have multiple channels videos displayed to me in sequential order. After choosing a video to watch, I'll be able to watch it. To add a little bit of spice on top of this already interesting idea, lets do all of this in a terminal emulator... because why not?
This write-up is about what I did on my Linux system so for other OS's may need different instructions.
The Software
You're going to need to install the following:
kitty - Terminal Emulator
mpv - Video player
yt-dlp - Video downloader
newsboat - RSS/Atom reader
Use your package manager to install the above programs. I'm using Gentoo so for me this was:
sudo emerge -av kitty mpv yt-dlp newsboat
Great, so now we have all the ingredients for this recipe but we need to combine them all together to create this dish.
Kitty
We'll start from the ground up and that begins with our terminal emulator. Kitty was chosen because it has a nice feature where it can display images AND video+audio within the terminal itself.
My configuration is the following:
.config/kitty/kitty.conf font_family Inconsolata Nerd Font bold_font Inconsolata Nerd Font italic_font Inconsolata Nerd Font bold_italic_font Inconsolata Nerd Font font_size 10.5 tab_bar_min_tabs 1 tab_bar_edge bottom tab_bar_style powerline tab_powerline_style slanted tab_title_template {title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}
The kitty configuration isn't strictly necessary but changing the font size at a minimum is something I always do when trying out a new terminal emulator. The above also adds a bottom bar to Kitty.
MPV
MPV is an amazing video player that I've been using for close to a decade. It can stream videos from the web through the help on yt-dlp. You don't need to strictly do anything for MPV to work in this setup. I'd however recommend looking at this youtube video quality script (which you'd download to $HOME/.config/mpv/scripts/). The script allows you to choose a lower quality such as 720p if you're experiencing issues with a video loading. You just need to type, "ctrl+f" and use your arrow keys to select a resolution and hit enter.
Newsboat
Newsboat is an RSS and Atom reader. If you don't know what either of these things mean, that's okay. All you do need to know is that RSS or Atom is just a way of displaying information in XML format. Newsboat simply displays articles (or youtube channels in our usecase) and allows you to do run macro's on them or if you're using the program for it's original intended purpose, read the article.
Back to our setup! Newsboat is the program where all of the magic happens. First up, this is what I have configured within the newsboat config file.
.newsboat/config # General auto-reload yes max-items 100 # Browser browser "/usr/bin/firefox-bin %u" macro v set browser "mpv --really-quiet --vo=kitty --vo-kitty-use-shm=yes"; open-in-browser-and-mark-read; set browser "/usr/bin/firefox-bin %u" # Vim keybindings ## Unbind default keys unbind-key ENTER unbind-key j unbind-key k unbind-key J unbind-key K ## Bind Keys - Vim bind-key j down bind-key k up bind-key l open bind-key h quit
The applicable lines above is the macro. We're setting the "browser" to "mpv --really-quiet --vo=kitty --vo-kitty-use-shm=yes". What this does is tells newsboat to, for when we use this macro, set our browser to mpv which will launch within the kitty terminal, enable shared memory (without this option, videos ran at like 15fps for me). We then call, "open-in-browser-and-mark-read" which executes the mpv "browser" we set just before and causes the video we just opened to be viewed as, "read" (or in our case, we watched). We then reset the default browser back to firefox. I will explain how to use the macro towards the end of this guide.
Everything else in my config is strictly optional. Vim-like keybinds isn't necessary but I'm personally addicted to them.
Configuring the URL list
Having our config file setup is great and all but we now need to populate our RSS feed with some of our favourite youtube channels. There's a couple of ways to do this but I prefer to use Invidious. For this step, hop over to Invidious and find your favourite youtubers channel. On the top right, there's an, "RSS" button. Right click -> Copy Link and you've successfully got RSS feed for your favourite youtuber.
For my example, I'm going to say that my favourite youtubers are: ThePrimeagen, ThePrimeTime, DistroTube and Chris Titus Tech. My urls file will look like the following.
.newsboat/urls https://yewtu.be/feed/channel/UC8ENHE5xdFSwx71u3fDH5Xw "ThePrimeagen" https://yewtu.be/feed/channel/UCUyeluBRhGPCW4rPe_UvBZQ "ThePrimeTime" https://yewtu.be/feed/channel/UCVls1GmFKf6WlTraIb_IaJg "DistroTube" https://yewtu.be/feed/channel/UCg6gPGh8HU2U01vaFCAsvmQ "Chris Titus Tech"
Above, we have added the RSS feed link for each channel and in quotes, tagged each channel with their name. Tagging isn't strictly necessary but it makes knowing what the links before it are supposed to be (also they will be needed if you wish to view everything in a list which we'll show up next).
Using tags and queries
You could easily just stop following along and you'll be able to easily to see each youtube video each content creator releases. But what if we want to imitate the subscription feed? Enter queries. Queries are just an automated way to concatenate multiple RSS feeds into a single feed. Below is an example of how to do this with our urls file.
.newsboat/urls "query:Subscriptions:tags # \"timeline\"" https://yewtu.be/feed/channel/UC8ENHE5xdFSwx71u3fDH5Xw "ThePrimeagen"; timeline https://yewtu.be/feed/channel/UCUyeluBRhGPCW4rPe_UvBZQ "ThePrimeTime"; timeline https://yewtu.be/feed/channel/UCVls1GmFKf6WlTraIb_IaJg "DistroTube"; timeline https://yewtu.be/feed/channel/UCg6gPGh8HU2U01vaFCAsvmQ "Chris Titus Tech"; timeline
What we added above was the query. It'll place everything which has the tag of, "timeline," into a feed named, "Subscriptions."
If you don't want each of the channel feeds to show up, you can ensure they don't by adding a ! into the first tag like so.
.newsboat/urls "query:Subscriptions:tags # \"timeline\"" https://yewtu.be/feed/channel/UC8ENHE5xdFSwx71u3fDH5Xw "!ThePrimeagen"; timeline https://yewtu.be/feed/channel/UCUyeluBRhGPCW4rPe_UvBZQ "!ThePrimeTime"; timeline https://yewtu.be/feed/channel/UCVls1GmFKf6WlTraIb_IaJg "!DistroTube"; timeline https://yewtu.be/feed/channel/UCg6gPGh8HU2U01vaFCAsvmQ "!Chris Titus Tech"; timeline
Using the Setup
If everything has gone smoothly so far, you can open up newsboat by typing in the command, newsboat and it should look like this.
If you're using my keybindings, you can press "l" to go into the Subscriptions feed and see the latest videos from the creators. If you're using the default keybindings, just press, "Enter".
To use the macro we setup earlier to launch a video, find a video that piques your interest and press, ", v" (comma, v). If you're using my bindings, you can navigate up and down using j and k. Standard is just arrow keys.
Wait a second for the video to start and it should launch directly in the kitty terminal!
You can control volume by pressing 9 for lower, 0 for higher. Space bar is to pause. Left and right arrow keys move backwards and forwards by 10 seconds in the video consequently. Press q to quit back to newsboat. You may also quit out of newsboat itself by pressing q again.
If this interests you, I hope you enjoy a rather niche way to watch youtube :)
0 notes
Text
@endlessmidnightparadeโ wrote in to ask a couple of questions from this Weird Questions for Writers ask meme:
1. What font do you write in? Do you actually care or is that just the default setting?
uhh... well... Perhaps you will regret asking me this question when I tell you that the font I write all my fiction in is called โDroid Sans Mono Dotted for Powerline.โ
Letโs break that all down, shall we?
Droid is an old family of fonts that Google created for Android, back when Android versions were named after sugary treats. (โIce Cream Sandwich,โ anyone?)
Sans is for sans-serif, meaning the font looks more like Helvetica than Times New Roman. (No decorative โtagsโ hanging off the ends of strokes.)
Mono is for monospaced. (Each letter and number is the same width, like how a typewriter font looks.)
Dotted means that the zero numeral (0) has a dot in the center, instead of a slash.
for Powerline means that the font has been hacked to work with the Powerline status bar in the vim editor. What the frackinโ frack does all that mean? Here, a pictureโs worth a thousand words. (Powerline is that yellow-n-purple line at the bottom.)
(Behold the opening paragraphs to my WIP while youโre at it.)
I work in IT for a living and spend much of my coding and infrastructure development time in terminal (text-based) interfaces. My primary hobby these days is writing. So I spend a lot of time staring at text in my chosen font, and Droid Sans Mono is pleasing to my eye whether Iโm a thousand lines deep in Python code or Terraform config, or writing a 130,000 word novel. This font makes it easy to see the โshapeโ of what Iโm writing at a glance.
So yeah, I care about what font I use very much. ๐คฃ
4. Whatโs a word that makes you go absolutely feral?
The Ancient Greek word โglukupikron.โ Anne Carson, tell us why!
[Weird Questions for Writers ask meme]
#WHY YES I'M A BIG OL' NERD#endlessmidnightparade#thanks for asking friend!#sometimes i have thoughts about writing#glukupikron is my word of the day#tmi sunday?#tmi
4 notes
ยท
View notes
Text
์๋ฒฝํ Mac ์์
ํ๊ฒฝ ์ธํ
ํ๊ธฐ (vim, zsh, iterm)
๊ทธ๋์ ๊ฐ์ธ ์ปดํจํฐ๋ก๋ ์๋ง์ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด์ ์์
ํ๊ฒฝ์ ๋ง๋ค์๊ณ , ํ์ฌ์์๋ ์๋ง์ ์ธํด๋ถ๋ค๊ณผ ๋ด์ปค๋จธ๋ค์ด ์ค๊ณ ๊ฐ๋ฉด์ ๊ทธ๋ค์ ์์
ํ๊ฒฝ์ ์ธํ
ํด์ฃผ๊ณ ๊ฐ์ด๋๋ผ์ธ ํด์คฌ๋ค, ํ์๋ ์ต๋ํ ๋ง์ ํธ๋ฆญ๊ณผ ์ ํ
ํฑ ์๊ฑฐ, ๊ทธ๋ฆฌ๊ณ ๋ถํ์ํ ๋
ธ๋์๊ฐ์ ์ค์ด๊ธฐ์ํด ๊น์ด์๊ฒ ํ๊ณ ๋ค๊ณ ๋ ํ๊ณ ๋๋ ๊ฒ์ ์ข์ํ๋ค.
์ด๋ฒ ์๊ฐ์์๋ ๋งฅ ํ๊ฒฝ์์ ์์
ํ๋ ์ฃผ ์์
์๋ค์ ์ํด ์ฌ๋ฌ๋ถ์ ๋
ธ๋์๊ฐ์ ์ค์ผ ์ ์๋ ๋ช๊ฐ์ง ํ๋ค์ ์๊ฐํ๋ ค๊ณ ํ๋ค. ์ด ๊ธ์์ tmux์ ๋ํ ๋ด์ฉ๊น์ง ๋ด์ผ๋ ค๊ณ ํ์ง๋ง tmux๋ง ํด๋ ๋ด์ฉ์ด ๋๋ฌด ๋ฐฉ๋ํ๋ฏ๋ก iTerm์ Split View๊ธฐ๋ฅ์ผ๋ก ๋์ฒดํ๊ณ tmux๋ ๋ค์ ์๊ฐ์ ๋ค๋ฅธ ํฌ์คํธ์์ ์์ธํ ๋ค๋ฃจ๋๋ก ํ๊ฒ ๋ค.
ํฐ๋ฏธ๋ ํ๊ฒฝ ๊ตฌ์ฑํ๊ธฐ
๋ด๊ฐ ์ผํ๋ ๋ถ์ผ๋ ๊ฐ์ธ ํ๋ก์ ํธ์์๋ ํฐ๋ฏธ๋์ ์ด์ด ์ฌ์ฉํ๋ ๊ฒฝ์ฐ๊ฐ ๋ค๋ถํ๋ค, ์๋ง ์ด ๋ถ์ผ๊ฐ ๋น์ฐํ ๊ทธ๋ ๋ค๊ณ ์๊ฐํ๊ณ ์๊ณ ๋ง์ฝ ํฐ๋ฏธ๋๊ณผ ์นํ์ง ์๋ ์ ์ ๋ผ๋ ์ด ์น์
์์ ํฐ๋ฏธ๋ ํ๊ฒฝ์ ๊ตฌ์ฑํด์ ์ด ๊ธฐํ์ ํฐ๋ฏธ๋๊ณผ ์กฐ๊ธ ๋ ์นํด์ ธ๋ณด๋ ์๊ฐ์ ๊ฐ์ง๋๋ก ํ์.
์ฌ๋ฌ๋ถ์ด ๊ฐ์ง๊ณ ์๋ ์ด๊ธฐ ํฐ๋ฏธ๋์ ์์ ๊ฐ์ ๋ชจ์์๋ผ๊ณ ์๊ฐํ๋ค. ๏ฟฝ๏ฟฝ๏ฟฝ๋ฆฌ๋ ์ด๊ฒ์ ์๋์ฒ๋ผ ๋ฐ๊ฟ ๊ฒ์ด๊ณ , ์๊ฐ๋ณด๋ค ์ด๋ ต์ง ์๊ธฐ ๋๋ฌธ์ ๋๊ธฐ๋ฅผ ๊ฐ์ง๊ณ ๋ฐ๋ผํ๊ธฐ๋ฅผ ๋ฐ๋๋ค.
1. Oh My ZSH ์ค์นํ๊ธฐ
๊ฐ์ฅ ๋จผ์ ์ฌ๋ฌ๋ถ์ด ํด์ผ ํ ๊ฒ์ ๊ธฐ๋ณธ ์์ ์๋ก์ด ์ ํ๋ก๊ทธ๋จ์ผ๋ก ๊ต์ฒดํ๋ ์ผ์ด๋ค. ์ฌ๋ฌ๋ถ์ ๋งฅ ํ๊ฒฝ์ด ๋ณ๋ค๋ฅธ ์์ ์ ๊ฑฐ์น์ง ์์๋ค๋ฉด ๊ธฐ๋ณธ์ ์ผ๋ก bash๊ฐ ์ฌ๋ฌ๋ถ์ ๊ธฐ๋ณธ ์ ํ๋ก๊ทธ๋จ์ผ ๊ฒ์ด๋ค.ย
https://gist.github.com/KennethanCeyer/8c8420585f3d933e6703e43680d87ab3
๋จผ์ ์๋ ๋ช
๋ น์ด๋ฅผ ํตํด zsh๋ฅผ ์ค์นํด๋ณด์.
https://gist.github.com/KennethanCeyer/47c981fccd3690e1bd410f4a388de5ce
๋๋๊ฒ๋ ์ด๋ฏธ ์ฌ๋ฌ๋ถ์ ์์ zsh๋ก ๋ณ๊ฒฝ์ด ๋์๋ค. oh-my-zsh ํ๋ก์ ํธ๋ zsh ์์ ์ฝ๊ฒ ์ค์นํ๊ณ ๊ด๋ฆฌํ ์ ์๊ฒ ๋์์ค๋ค, ๋๋ถ์ ์ฌ๋ฌ๋ถ์ ๋จ ํ์ค์ ์ฝ๋๋ก zsh๋ฅผ ์ฝ๊ฒ ์ค์น / ์
๊ทธ๋ ์ด๋ ํ ์ ์์๋ค.
์ ์ด๋ฆ์ $0 ํ๊ฒฝ๋ณ์๋ก ํ์ธํ ์ ์๋ค. ์ฌ๋ฌ๋ถ์ ํฐ๋ฏธ๋์ `zsh`๊ฐ ์ถ๋ ฅ๋๋์ง ํ์ธํด๋ณด์, ์๋ ๊ทธ๋ฆผ์ฒ๋ผ `zsh`๊ฐ ๋์ค๋ฉด ์ ์์ ์ผ๋ก ์ค์น๋ ๊ฒ์ด๋ค.
2. Powerlevel9k ํ
๋ง ์ค์น
zsh๋ ์ ์์ ์ผ๋ก ์ค์น๋์์ด๋, ๋ณ๋์ ํ
๋ง๊ฐ ์ ์ฉ๋์ง ์์ผ๋ฉด ๊ต์ฅํ ๋ฐ๋ฐํ ๋๋์ ํฐ๋ฏธ๋๋ง์ด ์ ๊ณต๋๋ค. ํ์๋ ์ฌ๋ฌ๊ฐ์ง ํ
๋ง๋ฅผ ์ฌ์ฉํด๋ดค์ง๋ง Powerlevel9k ๋ณด๋ค ์ด์ธํ๊ณ ์ฟจํ ํ
๋ง๋ฅผ ์ฐพ์ง ๋ชปํ๋ค. ๋ง์ฝ ๋ ์ข์ ํ
๋ง๋ฅผ ์๊ณ ์๊ฑฐ๋ ์ ์ํ๊ณ ์ถ์ผ๋ฉด ์ด ๋ธ๋ก๊ทธ ํ๋จ ๋๊ธ๋ก ๋จ๊ฒจ์ฃผ์๊ธฐ ๋ฐ๋๋ค.
์๋ ์ฒ๋ผ ๋ช
๋ น์ด๋ฅผ ์
๋ ฅํ์ฌ zsh themes ํด๋ ๋ด์ powerlevel9k๋ฅผ ๋ด๋ ค๋ฐ๋๋ค.
https://gist.github.com/KennethanCeyer/2794384bce32ae8650eb9e94131c3da5
์ฐ๋ฆฌ๋ ํ
๋ง๋ฅผ ๋ค์ด๋ก๋ ๋ฐ๋ ๊ฒ๊น์ง๋ ์๋ฃํ๊ณ , ์ต์ข
์ ์ผ๋ก .zshrc ํ์ผ์ ์์ ํ์ฌ ์ ํํ ํ
๋ง ์ด๋ฆ์ zsh ์์ ์๋ ค์ฃผ์ด์ผ ํ๋ค. ์๋ ๋ช
๋ น์ด์ฒ๋ผ .zshrc ํ์ผ์ ์ด์ด๋ณด์.
https://gist.github.com/KennethanCeyer/8739695df2d1ca420326d5a127511a25
์๋ ๊ทธ๋ฆผ์ฒ๋ผ ZSH_THEME ๋จ๋ฝ์ `powerlevel9k/powerlevel9k`๋ก ๋ฐ๊ฟ์ค๋ค. ์๋ง ์ฌ๋ฌ๋ถ์ .zshrc์ ๊ธฐ๋ณธ ZSH_THEME๋ `robbyrussell`๋ก ์กํ์์ ๊ฒ์ด๋ค.
์ดํด๊ฐ ์ ๊ฐ์ง ์๋๋ค๋ฉด ์๋ ๋งํฌ๋ฅผ ํด๋ฆญํ์ฌ ๋ณ๊ฒฝ ๋ฐฉ๋ฒ์ ์ดํด๋ณด์.
`.zshrc` ํ์ผ์ ๋ณ๊ฒฝํ๋ค๋ฉด, zsh ๋ช
๋ น์ด๋ฅผ ํตํด ์์ ๋ค์ ์ด์ด์ค์ผ ๋ณ๊ฒฝ ์ฌํญ์ด ํ์ธ์ด ๊ฐ๋ฅํ๋ค.
https://gist.github.com/KennethanCeyer/4bfcc90111e69632111387d239931cb2
3. Iterm2 ์ค์น
์ฌ๋ฌ๋ถ์ด ๊ธฐ๋ณธ์ ์ผ๋ก ์ฌ์ฉํ๋ ํฐ๋ฏธ๋ ํ๋ก๊ทธ๋จ์ ํฐ๋ฏธ๋์ ํธ์๊ธฐ๋ฅ์ด ๋ง์ด ๋ถ์กฑํ๋ค. ๋ฐ๋ผ์ ์๋์ ํธ์ ๊ธฐ๋ฅ์ ์ฌ์ฉํ๊ธฐ ์ํด Iterm2๋ฅผ ์ค์นํ๋๋ก ํ์. Iterm2์์ ์ ๊ณตํ๋ ๊ธฐ๋ฅ ์ค ํน๋ณํ ์๋์ ๊ธฐ๋ฅ์ด ์ ์ฉํ๋ค.
ํฐ๋ฏธ๋ ํญ ๊ธฐ๋ฅ (+ํ ๊ธ ๋จ์ถํค)
ํฐ๋ฏธ๋ Split View
์๋์์ฑ ๊ธฐ๋ฅ
ํฐ๋ฏธ๋ ๋ด์์ ๋จ์ด ์ฐพ๊ธฐ
๋ง์ฐ์ค ์์ด ๋ณต์ฌ&๋ถ์ฌ๋ฃ๊ธฐ
256 ์ด์์ ์์ ์ง์
๋ ๋ง์ ๊ธฐ๋ฅ ์ดํด๋ณด๊ธฐ:ย https://www.iterm2.com/features.html
๊ทธ๋ผ ๋ณธ๊ฒฉ์ ์ผ๋ก ์ค์น๋ฅผ ์งํํด๋ณด์. ์ค์น๋ย https://www.iterm2.com/downloads.html์์ ์งํํ ์ ์๋ค.ย ๋งํฌ์์ Stable Releases์์ ์ต์ ํ์ผ์ ์ค์นํ์. ์ด ํฌ์คํธ ๊ธฐ์ค์ผ๋ก๋ Iterm2 3.2.9 ๋ฒ์ ์ด ์ต์ ์ด๋ค.
๋ค์ด๋ก๋๊ฐ ๋๋๋ฉด ์๋์ ๊ฐ์ด ๋ค์ด๋ก๋ ํด๋์ Iterm2๊ฐ ์๋ค, ํ๋ก๊ทธ๋จ์ ์ดํ๋ฆฌ์ผ์ด์
์ผ๋ก ์ฎ๊ฒจ ์ค์น๋ฅผ ํด์ฃผ์.
์์คํ
ํ๊ฒฝ์ค์ > ๋ณด์ ๋ฐ ๊ฐ์ธ ์ ๋ณด ๋ณดํธ > ๊ฐ์ธ ์ ๋ณด ๋ณดํธ ํญ์์ ๋ฐฉ๊ธ ์ค์นํ Iterm2๋ฅผ ์ถ๊ฐํด์ฃผ๋๋ก ํ์.
์ค์ ์ด ๋๋ฌ์ผ๋ฉด ์ดํ๋ฆฌ์ผ์ด์
์ ์ค์น๋ iTerm ์ฑ์ ์คํ์์ผ๋ณด์.
๋งฅ์ ๊ธฐ๋ณธ์ ์ผ๋ก ์ธํฐ๋ท์์ ๋ค์ด๋ก๋ ๋ฐ์ ์ฑ์ ์์ ๊ฐ์ ๊ฒฝ๊ณ ๋ฉ์์ง๊ฐ ๋ํ๋๊ฒ ๋๋ค. ์ด๊ธฐ ๋ฒํผ์ ํด๋ฆญํ๋ฉด ์ฑ์ด ์ ์์ ์ผ๋ก ์คํ๋๊ณ ๊ฒฝ๊ณ ๋ ๋ค์ ๋ํ๋์ง ์๋๋ค. `์ด๊ธฐ`๋ฅผ ํด๋ฆญํ์ฌ ์ด์ด์ฃผ์.
์ฌ๊ธฐ๊น์ง ์ ๋ฐ๋ผ ์ค์
จ์ผ๋ฉด ์์ ๊ฐ์ ํฐ๋ฏธ๋ ์ฐฝ์ ๋ณผ ์ ์๋ค. ์ด์ ํฐ๋ฏธ๋ ์ฑ์ Dock์์ ์ ๊ฑฐํ๊ณ ์๋ณ์ ๊ณ ํ์, ์์ผ๋ก ์ฌ๋ฌ๋ถ์ iTerm์ ๊ธฐ๋ณธ ํฐ๋ฏธ๋๋ก ์นํด์ง ์๊ฐ์ ๊ฐ์ง ๋ ๋ง ๋จ์๋ค.
4. Powerlevel9k font ์ค์น
๋์น๊ฐ ๋น ๋ฅธ ๋
์๋ผ๋ฉด ๋๋ผ๊ฒ ์ง๋ง ํ๋ฉด์ ์ผ๋ถ ํ
์คํธ๊ฐ ๊นจ์ง๋ ํ์์ด ๋ณด์ธ๋ค. ์๋ ๊ทธ๋ฆผ์ฒ๋ผ ์ผ๋ถ ๋ฐ์ค๊ฐ ๊นจ์ ธ ์ ๋๋ก ๋ณด์ด์ง ์๊ณ `?` ๊ธฐํธ๋ก ํ์๋๋ค.
๊ธ์๊ฐ ๊นจ์ง๋ ์ด์ ๋ ์ฐ๋ฆฌ๊ฐ ์์ ์ค์นํ Powerlevel9k ํ
๋ง๋ ์ผ๋ถ ํน์ ๋ฌธ์๋ฅผ ์ฌ์ฉํ์ฌ TUI (Text User Interface) ํ๋ฉด์ ๊พธ๋ฏธ๊ธฐ ๋๋ฌธ์, Powerlevel9k์์ ๊ถ์ฅํ๋ ํฐํธ๋ฅผ ์ฌ์ฉํด์ค์ผ ํ๋ค. ์๋์ ๊ฐ์ ์ ์ฐจ๋ฅผ ๋ฐ๋ผํ์ฌ ํฐํธ๋ฅผ ์ค์นํด๋ณด์.
https://gist.github.com/KennethanCeyer/6b7243146bb9e0730b32a53f2e116b5e
ํฐํธ ์ค์น๊ฐ ๋๋ฌ์ผ๋ฉด iTerm ์ค์ ์ ํตํด ํฐ๋ฏธ๋ ๊ธฐ๋ณธ ํฐํธ๋ฅผ ๋ณ๊ฒฝํด์ฃผ์ด์ผ ํ๋ค. iTerm ํ๋ฉด์์ Command + ,(์ฝค๋ง) ๋จ์ถํค๋ฅผ ์ด์ฉํด ์ค์ ์ฐฝ์ ์ด์ด์ค๋ค. ๊ทธ ๋ค์ Profiles > Text ํญ์ Font ์น์
์๋์ ์๋ `Change Font` ๋ฒํผ์ ํด๋ฆญํด์ฃผ์.
์ข์ธก ํ์ ์์ญ์์ All Fonts๋ฅผ ํด๋ฆญํ๊ณ ์คํฌ๋กค์ ๋ด๋ฆฌ๋ค๋ณด๋ฉด `Meslo LG M DZ for Powerline` ํฐํธ๊ฐ ๋ณด์ธ๋ค. ๊ทธ ํฐํธ๋ฅผ ์ ํํ๊ณ ๊ธ์ ํฌ๊ธฐ๋ฅผ ์ฌ๋ฌ๋ถ์ด ์ํ๋ ํฌ๊ธฐ๋ก ์ธํ
ํ๊ณ ์ฐฝ์ ๋ซ์์ค๋ค. (ํ์๋ 12pt๊ฐ ์ ๋นํ๋ค๊ณ ์๊ฐํ์ง๋ง, ๋์ ํ๋ฉด์ ๊ฐ์ง ์ฌ์ฉ์์ ๊ฒฝ์ฐ 13pt๊ฐ ๊ฐ์ฅ ์ ์ ํ๋ค.)
์ด์ ์ฌ๋ฌ๋ถ์ ์๋ ํ๋ฉด์ฒ๋ผ ๋ชจ๋ ํ
์คํธ๊ฐ ๊นจ์ง์์ด ์ถ๋ ฅ๋๋ ๊ฒ์ ํ์ธ ํ ์ ์๋ค.
5. iTerm color scheme ์ค์
์ด์ ์ฐ๋ฆฌ๋ ํ
๋ง๊ฐ ์ ์ฉ๋ ์๋ฆ๋ค์ด ํฐ๋ฏธ๋ ๊ตฌ์ฑ ์ธํ
์ด ๋๋ฌ๋ค. ํ์ง๋ง ์ปฌ๋ฌ๊ฐ ๋๋ฌด ์์ ๊ฒฝ์ ์๊ทนํ๊ณ ์ปฌ๋ฌ์ ์์ฒด๋ ๊ทธ๋ ๊ฒ ์๋ฆ๋ต์ง ๋ชปํ ๊ฒ ๊ฐ๋ค. ๋ฐ๋ผ์ ์ปฌ๋ฌ ์คํด์ ์ ์ฉํ์ฌ ์กฐ๊ธ ๋ ์์ฒด ๋ฐฐํฉ์ด ์๋ฆ๋ค์ด ํฐ๋ฏธ๋๋ก ๊ต์ฒดํด๋ณด์.
ํ์๋ ์ฌ๋ฌ๊ฐ์ง ์ปฌ๋ฌ ์คํด์ ์ฐพ์ ํ
์คํธ๋ฅผ ํด๋ณด์๊ณ ์ง๊ธ์ Brogrammer ์คํด์ด ๊ฐ์ฅ ํ์์ ์ ํธ๋์ ๋ง๋ ์คํด์ด๋ค. ๋ฐ๋ผ์ ์ด ํฌ์คํธ์์๋ Brogrammer๋ฅผ ์ค์นํ๋ ๊ฐ์ด๋๋ฅผ ์งํํ๋ค. ๊ตฌ๊ธ์ iterm color scheme์ด๏ฟฝ๏ฟฝ๏ฟฝ ๊ฒ์ํ์ฌ ์ฌ๋ฌ๋ถ์ ์ ํธ์ ๋ง๋ ์คํด์ ์ค์นํ ์ ์์ผ๋ฏ๋ก ๋ง์ฝ ์ด ํฌ์คํธ์์ ๋์จ ์ปฌ๋ฌ ์คํด์ ์ํ์ง ์์ ๊ฒฝ์ฐ ์ฌ๋ฌ๋ถ์ด ์ํ๋ ์ปฌ๋ฌ ๋ก ์ค์ ํ๋ฉด ๋๋ค.
https://gist.github.com/KennethanCeyer/a21f23327a0e5ac3bf7fb8b800ecc179
์ ๋ช
๋ น์ด๋ฅผ ์
๋ ฅํ์ฌ Brogrammer ์ปฌ๋ฌ ์คํด์ ์ฌ๋ฌ๋ถ์ ํ ๋๋ ํ ๋ฆฌ .iterm ํด๋์์ ๋ค์ด๋ก๋ ํ์๋ค. ๋ค์ด๋ก๋๊ฐ ๋๋ฌ๋ค๋ฉด iTerm ํ๋ฉด์์ Command + ,(์ฝค๋ง) ๋จ์ถํค๋ก ์ค์ ํ๋ฉด์ ์ด๊ณ Profiles > Colors ํญ์ ์ฐ์ธกํ๋จ์ Color Presets ์ฝค๋ณด๋ฐ์ค๋ฅผ ์ด์ด `Import` ์ต์
์ ์ ํํ์. ์ดํด๊ฐ ์ ์๊ฐ๋ค๋ฉด ์๋ ๊ทธ๋ฆผ์ ๋ณด์.
ํ์๊ธฐ์์ Command + Shift + g ๋จ์ถํค๋ฅผ ์
๋ ฅํ์ฌ ๊ฒฝ๋ก ์
๋ ฅ ์ฐฝ์ ์ด๊ณ `~/.iterm` ์ ์
๋ ฅํ์ฌ ~/.iterm ํด๋๋ก ์ด๋ํ ํ .iterm ํด๋ ๋ด์ ์๋ Brogrammer.itermcolorsํ์ผ์ ์ ํํด์ฃผ์.
Import๊ฐ ์๋ฃ๋์๋ค๋ฉด ์๋์ ๊ฐ์ด ์ ํ ํ๋ฉด์์ Brogrammer๊ฐ ํ์ธ๋๋ค.
Brogrammer๋ฅผ ์ ํํ๊ณ , ์ค์ ํ๋ฉด์ ๋ซ์์ฃผ์. ์ค์ ์ด ์ ์์ ์ผ๋ก ๋์๋ค๋ฉด ์๋์ ๊ฐ์ด ์ปฌ๋ฌ๊ฐ ๋ณ๊ฒฝ๋ ํฐ๋ฏธ๋์ ํ์ธํ ์ ์๋ค.
6. Powerlevel9k context ์ค์
Powerlevel9k ํ
๋ง๋ ํ๊ฒฝ๋ณ์๋ฅผ ํตํด ์ฌ์ฉ์ ์
๋ง์ ๋ง๊ฒ ์ปค์คํฐ๋ง์ด์ง ํ๋ ๊ธฐ๋ฅ์ ์ ๊ณตํ๊ณ ์๋ค.ย https://github.com/bhilburn/powerlevel9k#prompt-customizationย ๋งํฌ๋ฅผ ํ์ธํด๋ณด์.
์ ๊ทธ๋ฆผ์ ์์์ฒ๋ผ ํ๊ฒฝ๋ณ์๋ ์ข์ธก๊ณผ ์ฐ์ธก ๋ผ์ธ์ ๊ธฐ๋ณธ์ ์ผ๋ก ํ์๋๋ Context๋ฅผ ์์ ํ ์ ์๊ฒ ์ ๊ณตํด์ค๋ค. ํ์๋ ๋ค์๊ณผ ๊ฐ์ ๋ด์ฉ์ .zshrc์ ์ถ๊ฐํ์๋ค.
https://gist.github.com/KennethanCeyer/d5658502e22a2be7e290de303e66ec66
๋ง์ฝ ์ค์ ๋ฐฉ๋ฒ์ด ์ดํด๊ฐ ์๋๋ค๋ฉด ์๋๋ฅผ ์ดํด๋ณด์.
์ค์ ํ์ผ์ ๋ณ๊ฒฝํ๋๋ผ๋ ๋ฐ๋ก ์ ์ฉ์ด ์๋๊ณ zsh ์์ ๋ค์ ์คํํด์ผ ํ๋ค. zsh ๋ช
๋ น์ด๋ฅผ ์
๋ ฅํ์ฌ zsh ์์ ๋ค์ ์คํํ์ฌ ๋ณด์. ์ค์ ์ด ์ ์๋ฃ ๋์๋ค๋ฉด ์๋์ ๊ฐ์ด ํฐ๋ฏธ๋์ด ์กฐ๊ธ ๋ ๊ฐ๋ตํ๋๋ค.
7. ์์
๋ง๋ฌด๋ฆฌํ๊ธฐ
์ฌ๋ฌ๋ถ์ ํฐ๋ฏธ๋์ ๋๋ถ๋ถ์ ์ค์ ์ด ๋๋ฌ๋ค. ์ด์ iTerm์ ๊ธฐ๋ฅ๊ณผ zsh ์์ ๊ธฐ๋ฅ, Powelevel9k ํ
๋ง์ ํธ๋ฆฌํ UI๋ค์ ์ฌ์ฉํ ์ ์๋ค. ๋ํ์ ์ธ ๊ธฐ๋ฅ๋ค์ ๋๋ฌ๋ณด์.
๋จผ์ iTerm์ ๊ธฐ๋ฅ ์ค Split view ๊ธฐ๋ฅ์ ์ดํด๋ณด์. ์ฌ๋ฌ๋ถ์ iTerm ํ๋ฉด์์ Command + D ๋จ์ถํค๋ฅผ ํตํด ๋ค์๊ณผ ๊ฐ์ด Vertical View, Command + Shift + D๋ฅผ ํตํด Horizontal View๋ก ๋ถ๋ฆฌํ ์ ์๋ค.
์ ๊ทธ๋ฆผ์ด Vertical View Split,
๊ทธ๋ฆฌ๊ณ ์ ๊ทธ๋ฆผ์ด Horizontal Split View์ด๋ค.
์ปค๋งจ๋ + W ๋จ์ถํค๋ฅผ ํตํด ํ์ฌ ํฌ์ปค์ค๊ฐ ์กํ View๋ฅผ ๋ซ์ ์ ์๊ณ , Command + ๋ฐฉํฅํค๋ฅผ ํตํด View ํฌ์ปค์ค๋ฅผ ์ค์์นญ ํ ์ ์๋ค.
Command + T๋ฅผ ํตํด ํญ์ ์์ฑํ ์ ์๊ณ Command + ์ซ์๋ก ํน์ ๋๋ฒ์ ํญ์ผ๋ก ์ค์์น๋ฅผ ํ ์ ์๋ค. ๋ง์ฐฌ๊ฐ์ง๋ก Command + W๋ก ํญ์ ๋ซ์ ์ ์๋ค.
๋ ์์ธํ iTerm ํธ์ ๊ธฐ๋ฅ์ย https://gist.github.com/squarism/ae3613daf5c01a98ba3aย ๋งํฌ์์ ์ ์ค๋ช
ํ๊ณ ์๋ค.
ZSH๋ ์ ๋ง์ ํธ์ ๊ธฐ๋ฅ์ ์ ๊ณตํ๊ณ ์๋ค. ๋จผ์ cd ๋ช
๋ น์ด๋ฅผ ๏ฟฝ๏ฟฝ๏ฟฝ๋ตํ๊ณ ๋ ํน์ ๋๋ ํ ๋ฆฌ๋ก ์ด๋ํ ์ ์๋ค.
๊ทธ๋ฆฌ๊ณ .. (์์ ํด๋๋ก ์ด๋)์ ์ถ๊ฐ์ ์ผ๋ก ์ (.)์ ๋ถ์ฌ ์ด๋ depth์ ์์ ๋๋ ํ ๋ฆฌ ๊น์ง ์ด๋ํ ์ง ์ง์ ์ด ๊ฐ๋ฅํ๋ค. ์๋ฅผ๋ค์ด .... (์ ์ด 4๊ฐ ์ฌ์ฉ๋์์ ๋)์ ๊ฒฝ์ฐ ์์ 3 depth์ ํด๋๋ก ์ด๋ํ๋ค.
๊ทธ ๋ฐ์ Tab์ผ๋ก ์๋ ์์ฑ(Auto complete)์ ์ง์ํ๋ ๊ธฐ๋ฅ๋ ํญ ๋๊ฒ ๋์ด๋๊ฒ ๋๋๋ฐ ๋ํ์ ์ผ๋ก git์ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ branch ๋ช
์ด๋ origin alias๋ ์๋ ์์ฑ์ผ๋ก ์ํฌํธํ๊ฒ ๋๋ค.
๋ ์์ธํ ๋ด์ฉ์ย https://github.com/robbyrussell/oh-my-zsh/wiki/Cheatsheet ๋งํฌ์์ ์ดํด๋ณด์.
๋ง์ง๋ง์ผ๋ก Powerlevel9K ํ
๋ง๊ฐ ์ ๊ณตํด์ค ์ ์๋ ๊ธฐ๋ฅ ์ค vcs์ ๋ํด์ ์๊ธฐํด๋ณด๊ณ ์ถ๋ค. ์ฌ๋ฌ๋ถ์ด git์ ์ด์ฉํ ๋ฒ์ ์ปจํธ๋กค์ ํ ๊ฒฝ์ฐ ์๋์ ๊ฐ์ด ๋ณด๊ธฐ ํธํ branch ์ํ ์ ๋ณด๋ฅผ ์ ๊ณต๋ฐ๊ฒ ๋๋ค.
์ ์ฌ์ง์์ ์ฐ๋์ ์์ญ์์๋ ํ์ฌ git ๋๋ ํ ๋ฆฌ์ ๋ธ๋์น ์ด๋ฆ์ ๋ณด์ฌ์ฃผ๊ฒ ๋๋ค. (์ด ์ฐ๋์ ์์ญ์ .git ๋๋ ํ ๋ฆฌ๊ฐ ์๋๋ฉด ์๋ต๋๋ค.)
๊ทธ ๋ฐ์๋ ๊ฐ๊ฐ์ git status์ ๋ฐ๋ผ ์ด ๋ถ๋ถ์ ์์๊ณผ ๋ด์ฉ์ด ์กฐ๊ธ ์ฉ ๋ณ๊ฒฝ๋๋ค.
๋ ์์ธํ Powerlevel9k์ ๊ธฐ๋ฅ์ https://bhilburn.org/powerlevel9k/ย ๋งํฌ์์ย ์ดํด๋ณด์.
Vim ํ๊ฒฝ ์ค๋นํ๊ธฐ
์ฌ๋ฌ๋ถ์ Mac์๋ ๋๋ถ๋ถ vi ์ปค๋งจ๋๊ฐ ๊ธฐ๋ณธ์ ์ผ๋ก ๋ด์ฅ๋์ด ์๋ค. vi ์ปค๋งจ๋๋ฅผ ์ด์ฉํ์ฌ ์๋ํฐ๋ฅผ ๋์ธ ์ ์๋๋ฐ ๊ธฐ๋ณธ์ ์ผ๋ก ์ต๊ทผ์ vi ์ปค๋งจ๋๋ vim(Vi IMproved) ์ปค๋งจ๋์ ๋์ผํ๊ฒ ๋์ํ๋ค.
vi --version์ ์ด์ฉํ์ฌ ๋ฒ์ ์ ๋ณด๋ฅผ ์กฐํํด๋ณด์.
vimrc ์ธํ
ํ๊ธฐ
https://github.com/amix/vimrc๋ฅผ ์ด์ฉํ์ฌ ์ฐ๋ฆฌ๋ ๊ธฐ๋ณธ์ ์ธ vim ํ๊ฒฝ์ ์ค๋นํ๊ณ ์ ํ๋ค. ์๋์ ๊ฐ์ ๋ช
๋ น์ด๋ฅผ ์ด์ฉํ์ฌ vimrc๋ฅผ ์ธํ
ํด๋ณด์.
https://gist.github.com/KennethanCeyer/3838790aa6eb1d1a3e5e201a9fad58b5
์ ํ๋ฉด์์ ์ฒ๋ผ Installed the Ultimate Vim configratuon successfully! Enjoy :-) ๋ผ๋ ๋ฌธ๊ตฌ๊ฐ ๋ณด์ด๋ฉด ์ ์์ ์ผ๋ก ์ค์น๋ ๊ฒ์ด๋ค. vi ๋ช
๋ น์ด๋ฅผ ์คํํด๋ณด์.
์ ์ฌ์ง์ฒ๋ผ ๊ฐ์ฅ ๊ธฐ๋ณธ์ ์ธ ํ๋ฉด ๊ตฌ์ฑ์ vimrc๊ฐ ๋ค ์ธํ
ํด์ฃผ์๊ธฐ ๋๋ฌธ์ ์ด๋์ ๋ ๋ณด๊ธฐ์ข์ ์ธํฐํ์ด์ค๋ก ๊ตฌ์ฑ์ด ๋์๋ค. ํ์ง๋ง ๋ช๊ฐ์ง ์ถ๊ฐ๋ก ๊ธฐ๋ฅ์ ์ด์ฉํ๋ ค๋ฉด ์ถ๊ฐ์ ์ธ ์ค์ ์ด ํ์ํ๋ค.
์๋ ๋ช
๋ น์ด๋ฅผ ์ด์ฉํ์ฌ .vimrc์ ์ถ๊ฐ์ ์ธ ์ค์ ์ ์ถ๊ฐํด์ฃผ์.
https://gist.github.com/KennethanCeyer/3742210bfcbb34ecdf7cbb9f2524687f
์ด์ vi ๋ช
๋ น์ด๋ฅผ ํตํด ์๋ํฐ๋ฅผ ์ด๋ฉด ๋ค์๊ณผ ๊ฐ์ ํ๋ฉด์ ๋ณผ ์ ์๋ค.
์ด ์ ๋๋ฉด ์ถฉ๋ถํ๋ค! ์ฌ๋ฌ๋ถ์ด vi๋ฅผ ํตํด ํ
์คํธ ํธ์ง์ด๋ ์ฌ์ง์ด ๊ฐ๋ฐ์ ํ ๊ฒฝ์ฐ์๋ ์ด ์ ๋์ ์ค์ ์ผ๋ก ์ต์ํ์ ์๊ตฌ์ฌํญ์ ์ถฉ์กฑํ ์ ์๋ค. ์ด์ vim๊ณผ ํจ๊ป ์ฆ๊ฑฐ์ด ํดํน์ ํ๊ธฐ ๋ฐ๋๋ค. ์ค์ ์ ๋ถ์กฑํจ์ ๋๋ผ๋ ๋
์๋ค์ ์ํด ๋ค๋ฅธ ํฌ์คํธ์์ vim์ ํ๋ฌ๊ทธ์ธ์ ์ถ๊ฐํ์ฌ ํ์ ์
์ ํ ์ ์๋ ๋ฐฉ๋ฒ์ ์ค๋ช
ํ ์์ ์ด๋ค.
ํ๋๋ง ๋! vim ํ
๋ง ์ค์
์ด๋ฏธ ์ฐ๋ฆฌ๋ iTerm ์ปฌ๋ฌ ์คํด์ ์ถ๊ฐํ์ฌ ์ถฉ๋ถํ ์ปฌ๋ฌ๋ฅผ ๊ฐ์ง๊ณ ์์ง๋ง ํ์คํ ๊ฒ์ ์ํ๋ ์ ์ ๋ฅผ ์ํด vim์ ์ปฌ๋ฌ ์คํด์ ์ถ๊ฐํ๋ ๋ฐฉ๋ฒ์ ๊ณต์ ํ๊ฒ ๋ค.
์ฐ๋ฆฌ๋ ์์ Brogrammer ์์ ํ
๋ง๋ฅผ ์ฌ์ฉํ๊ธฐ ๋๋ฌธ์ vim๋ ๊ฐ์ ์์ ํ๋ ํธ๋ก ํต์ผํ๋ ๊ฒ์ผ๋ก ์ค๋ช
ํ๋ค.
https://gist.github.com/KennethanCeyer/fe32c8d0ead2adafc6d59dc87d324509
๋จผ์ ์ ๋ช
๋ น์ด๋ฅผ ์ด์ฉํ์ฌ brogrammer.vim์ ~/.vim/colors ํด๋์ ๋ค์ด๋ก๋ ํ๋ค. ๊ทธ๋ฆฌ๊ณ ์๋ ํ๋ฉด์ฒ๋ผ colorscheme brogrammer๋ฅผ ~/.vimrc์ ์ถ๊ฐํ๋ค.
์ค์ ์ด ๋ค ๋๋ฌ์ผ๋ฉด, ์๋์ ๊ฐ์ด ๊ฐ๋ฐํ๊ฒฝ์์ vim์ ๋ค์ํ ํ๋ฉด ๊ตฌ์ฑ ๋ฐ ์์ ๋ฐฐ์น๋ฅผ ๊ฒฝํํด๋ณผ ์ ์๋ค.
๋์ผ๋ก
์ด๋ฒ ํฌ์คํธ๋ ๊ฐ๋ฐ ํ๊ฒฝ์ ๊ฐ์ฅ ๊ธฐ๋ณธ์ด ๋๋ ํฐ๋ฏธ๋๊ณผ vim ์ค์ ์ ๋ํด ์์๋ดค๋ค. ์ฌ๋ฌ๋ถ์ ๊ณ ์ ํฐ๋ฏธ๋ ๊ธฐ๋ฅ์ ํ์ฅํ ๊ฒ ๋ฟ์ ๋ถ๊ณผํ๋๋ฐ ๊ต์ฅํ ๊ธด ํฌ์คํธ ๊ธ์ ์ฝ์ด๋ณด๊ณ ์ํ ์ฐฉ์ค๋ฅผ ๊ฒช์ด๊ฐ๋ฉฐ ๊ณ ํต์ ๋๋ผ๊ณ ์์ ๊ฒ์ด๋ผ ์๊ฐํ๋ค.
์ด๋ฐ ๊ณ ํต์ ์ค์ด๊ธฐ ์ํด ์ดํ ๋ ๋ค์ํ ํฌ์คํธ๋ฅผ ํตํด ์ ์ฉํ ํธ๋ฆญ๋ค์ ๊ณต์ ํ๊ณ ๊ฐ์ด๋ํด์ค ์ ์๋๋ก ํ ์์ ์ด๋ค. ๋ค๋ง ์ฌ๋ฌ๋ถ์ด ์ด ๊ธ์ ์ฝ์ผ๋ฉฐ ์ป์ ๊ณต์ ๋ ๋์ค์ ์์ง ์๊ณ ์ฌ๋ฌ๋ถ์ด ๋ค๋ฅธ ํฌ์คํธ๋ฅผ ์จ์ ๋ ๋ค๋ฅธ ๊ธฐ์ ๊ณต์ ๋ผ๋ ๊ธฐ์ฌ๋ฅผ ํตํด ๊ฐ๋ฐ์ ๋คํธ์ํฌ์ ๋ณด๋ต์ ํด์ฃผ๊ธฐ๋ฅผ ํฌ๋งํ๋ค.
ํ์๋ ์ต๊ทผย https://github.com/KennethanCeyer/bireย ํ๋ก์ ํธ๋ฅผ ํตํด ์ด๋ฐ ์ค์น ๊ณผ์ ์ ๋ช์ค์ ์ปค๋งจ๋๋ก ์ต์ํ ํ ์ ์๋ ํ๋ก์ ํธ๋ฅผ ๊ธฐํํ๊ณ ์๋ค. ์ด ๋ถ๋ถ์ ๋ํด์๋ ๊ฒฝํ๊ธฐ๋ฅผ ํฌ์คํธ๋ก ๊ณต์ ํ ๊ณํ์ด๋ ๊ธฐ๋ํด์ฃผ๊ธฐ๋ฅผ ๋ฐ๋๋ค.
2 notes
ยท
View notes
Text
Iโm a big fan of fast shell prompts for โastronautsโ. Starship is the minimal, blazing fast, and extremely customizable prompt for any shell!. It works for Bash, Zsh and Fish shells. The Starship shell prompt is designed to only show the information you need while youโre working, while staying sleek and out of the way. Iโve usedย Pureย andย Spaceshipย before and this is the right time to give a different Prompt a try. We will see how to install Starship shell prompt on different Linux distributions and macOS. Step 1: Install Powerline font / FiraCode font A Powerline font is required. Install it with the commands: # Debian / Ubuntu sudo apt update sudo apt install fonts-powerline # Fedora sudo dnf install powerline-fonts # Any other Linux git clone https://github.com/powerline/fonts.git --depth=1 cd fonts ./install.sh cd .. rm -rf fonts Forย FiraCodeย font, install via: # Debian / Ubuntu sudo apt install fonts-firacode # Arch Linux / Manjaro sudo pacman -S otf-fira-code # Gentoo emerge -av media-fonts/fira-code # Fedora dnf copr enable evana/fira-code-fonts dnf install fira-code-fonts Step 2: Installing Starship cross-shell prompt for astronauts Use one of the methods shared here to install Starship cross-shell prompt for astronauts on your system. Install from package manager: # macOS brew install starship # Arch yay -S starship # Nix nix-env --install starship # Termux pkg install starship For Arch users, see how to useย yay โ Best AUR Helper for Arch Linux / Manjaro Install from pre-compiled binary: For other platforms, download precompiled binary and place it in your PATH. curl -s https://api.github.com/repos/starship/starship/releases/latest \ | grep browser_download_url \ | grep x86_64-unknown-linux-gnu \ | cut -d '"' -f 4 \ | wget -qi - Extract downloaded Archive. tar xvf starship-*.tar.gz Move theย starshipย binary toย /usr/local/binย directory. sudo mv starship /usr/local/bin/ Check version of starship installed. $ starship --version starship 1.4.2 Step 2: Configure Zsh / Bash / Fish Shell Add the lines below to your shell configuration file. # Bash $ vim ~/.bashrc eval "$(starship init bash)" # Zsh $ vim ~/.zshrc eval "$(starship init zsh)" # Fish $ vim ~/.config/fish/config.fish eval (starship init fish) Source your shell configuration for the changes to update. $ source ~/.zshrc You have Starship prompt installed and working. ย
0 notes
Text
Powerline fonts, Devicon glyphs, URXVT, Neo VIM
Powerline fonts, Devicon glyphs, URXVT, Neoย VIM
For over a year I had been trying to get these to work together, but I had never been able to get them to play together. I tried installing Powerline fonts, Nerd fonts (the full set) different versions of URXVT, different versions of nvim, but the results were always the same, a bunch of disrespectful and awkward looking characters littered my editor and my terminal emulator. The good news isโฆ
View On WordPress
#airline#Arch Linux#bufferline#devicons#neovim#nerd fonts#powerline#powerline fonts#rxvt-unicode#vim
0 notes
Link
0 notes
Link
๋งฅ์์ ๊ธฐ๋ณธ ํฐ๋ฏธ๋์ ๋์ฒดํ๋ iTerm2 ์ zsh๋ฅผ ์ด์ฉํด์ ๊น๋ํ (์์ด๋ณด์ด๋) ๋งฅ ํฐ๋ฏธ๋ ํ๊ฒฝ์ ๋ง๋ค์ด ๋ด
์๋ค. ์๋๋ iTerm2์ Snazzy ํ
๋ง์ zsh๋ฅผ ์ํ dracula ํ
๋ง๋ฅผ ์ ์ฉํ ๋ชจ์ต์ผ๋ก, Powerline Font์ ๊ฐ์ ํฐํธ๋ฅผ ์ถ๊ฐ๋ก ์ค์นํ์ง ์๊ณ ๋ ๊น๋ํ๊ณ ์ฌํํด์ ์ถ์ฒํ๋ ์กฐํฉ์
๋๋ค.
์ค์นํ๊ธฐ
Homebrew
์ฐ์ ๊ธฐ๋ณธ์ ์ผ๋ก Homebrew๊ฐ ์ค์น๋์ด ์์ด์ผํฉ๋๋ค. ๋งฅ์์ ๊ธฐ๋ณธ ํฐ๋ฏธ๋์ ์ด๊ณ ์๋์ ๊ฐ์ด ์
๋ ฅํด์ Homebrew๋ฅผ ์ค์นํด ์ค๋๋ค.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Homebrew์ ๊ด๋ จ๋ ์์ธํ ์ค๋ช
์ ์๋ ๋งํฌ์์ ํ์ธํ ์ ์์ต๋๋ค.
Homebrew๋ฅผ ์ฌ์ฉํด๏ฟฝ๏ฟฝ Mac ํจํค์ง๋ฅผ ๊ด๋ฆฌํ๊ธฐ
iTerm2 ์ค์น
iTerm2 ๋ ๋งฅ์ ๊ธฐ๋ณธ Terminal์ ๋์ฒดํ ์ ์๋ ํฐ๋ฏธ๋ ์๋ฎฌ๋ ์ดํฐ์
๋๋ค. ํ๋ฉด๋ถํ ๋ฑ ์ฌ๋ฌ๊ฐ์ง ๊ธฐ๋ฅ, ํ
๋ง ๋ณ๊ฒฝ ๋ฑ ๋ค์ํ ๊ธฐ๋ฅ์ ๊ฐ์ง๊ณ ์์ต๋๋ค.
๊ฐ๋จํ๊ฒ ํํ์ด์ง์์ ๋ค์ด๋ก๋ ๋ฐ์ ์ค์นํ๋ฉด ๋ฉ๋๋ค.
zsh ์ค์น
zsh๋ bash๋ฅผ ๋์ ํ๋ shell ํ๊ฒฝ์
๋๋ค. oh-my-zsh๊น์ง ์ค์นํ๋ฉด CLI ์ฌ์ฉ์ด ์์ฃผ ํธ๋ฆฌํด ์ง๋๋ค. zsh๋ Homebrew๋ฅผ ์ด์ฉํด ์ค์นํด ์ค๋๋ค.
# zsh ์ค์นํ๊ธฐ brew install zsh # zsh ์ค์น๊ฒฝ๋ก ํ์ธํ๊ธฐ which zsh # ๊ธฐ๋ณธ shell ๋ณ๊ฒฝํ๊ธฐ chsh -s $(which zsh)
๋ง์ฝ zsh ์ ๊ทผ์ด ์ ๋๋ก ์๋๋ค๋ฉด ๊ธฐ๋ณธ ํฐ๋ฏธ๋ ์ค์ ์ ์์ ํด ์ค๋๋ค.
ํฐ๋ฏธ๋ ํ๊ฒฝ์ค์ ์ผ๋ฐ -> ์
์ด๊ธฐ๋ฅผ โ๊ธฐ๋ณธ ๋ก๊ธ์ธ ์
โ์์ โ๋ช
๋ น์ด(์ ๋๊ฒฝ๋ก)โ๋ก ๋ฐ๊พธ๊ณ /usr/local/bin/zsh (zsh ์ค์น๊ฒฝ๋ก) ๋ฅผ ์
๋ ฅํฉ๋๋ค.
ํน์,
/etc/shells ํ์ผ์ /usr/local/bin/zsh ๋ฅผ ์ถ๊ฐํฉ๋๋ค.
oh-my-zsh ์ค์น
zsh๋ฅผ ๋ ํธ๋ฆฌํ๊ฒ ์ฌ์ฉํ ์ ์๊ฒ ๋์์ฃผ๋ ํ๋ ์์ํฌ๋ก, ํ๋ฌ๊ทธ์ธ๊ณผ ํ
๋ง๋ฅผ ํธ๋ฆฌํ๊ฒ ์ฌ์ฉํ๊ธฐ ์ํด์ ํ์ํฉ๋๋ค.
# wget curl ์ค์น brew install curl # oh-my-zsh ์ค์น sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
iterm2 ํ
๋ง ๊พธ๋ฏธ๊ธฐ
iTerm2์ zsh์ ํ
๋ง๋ฅผ ๋ณ๊ฒฝํด ๋ด
์๋ค.
์ฐ์ https://github.com/mbadolato/iTerm2-Color-Schemes ์ ์ ์ํฉ๋๋ค.
์ฌ๊ธฐ์ ์ํ๋ iTerm2 ํ
๋ง๋ฅผ ๊ณ ๋ฅธ ํ ๋ค์ด๋ก๋ํฉ๋๋ค. ์ ๋ Snazzy๋ฅผ ์ ํํ์ต๋๋ค.
iTerm2 > Preferences > Profiles > Colors Tab ์์ ์ฐ์ธก ํ๋จ Color Presets์ ํด๋ฆญํฉ๋๋ค.
Import ๋ฅผ ํด๋ฆญํ๊ณ ๋ค์ด๋ก๋ ๋ฐ์ ํ
๋ง๋ฅผ ์ ํํด ์ค๋๋ค.
iTerm2๋ฅผ ์ฌ์คํํ๋ฉด ํ
๋ง๊ฐ ์ ์ฉ๋์ด ์์ต๋๋ค.
zsh ํ
๋ง ๊พธ๋ฏธ๊ธฐ
zsh ํ
๋ง๋ .zshrc ํ์ผ์ ์์ ํด์ ๋ณ๊ฒฝํ ์ ์์ต๋๋ค.
https://github.com/robbyrussell/oh-my-zsh/wiki/themes ์์ ์ํ๋ ํ
๋ง๋ฅผ ์ฐพ์๋ด
๋๋ค.
์ ๋ ๋ง๋
ํ ํ
๋ง๊ฐ ๋ณด์ด์ง ์์์, ๊ฐ์ธ์ ์ผ๋ก ์ ํธํ๋ dracula ํ
๋ง๋ฅผ ์ ํํ์ต๋๋ค. https://draculatheme.com/zsh/
ํ
๋ง ํ์ผ์ ๋ค์ด๋ก๋ ๋ฐ๊ณ ์์ถ์ ํ๊ณ , oh-my-zsh/themes/dracula.zsh-theme ์ ๊ฒฝ๋ก๋ก ํ
๋ง ํ์ผ์ด ์ค์ ๋๋๋ก ํ์ผ์ ์ด๋ํฉ๋๋ค.
vim์ด๋ VS Code ๋ฑ ์ฌ์ฉํ๋ ํธ์ง๊ธฐ๋ก ~/.zshrc ํ์ผ์ ์ด์ด์ค๋๋ค.
ZSH_THEME ์ค์ ์ ์ฐพ์ต๋๋ค. ์ฌ๊ธฐ์ ์ํ๋ ํ
๋ง๋ก ๋ณ๊ฒฝํด์ค๋๋ค.
ZSH_THEME="dracula"
์ฐธ๊ณ ์๋ฃ
https://nesoy.github.io/articles/2018-01/Mac-Terminal
https://subicura.com/2017/11/22/mac-os-development-environment-setup.html
https://beomi.github.io/2017/07/07/Beautify-ZSH/
via Apptilus CODE
0 notes
Text
Repetidor de sinal ou Powerline, qual รฉ o melhor? - Canal da Lu - Magalu
Repetidor de sinal ou Powerline, qual รฉ o melhor? โ Canal da Lu โย Magalu
Oi gente! Nada pior do que sinal de Wi-Fi fraco em casa, nรฉ?! Hoje eu vim trazer pra vocรชs as melhores opรงรตes para aumentar seu sinal! Assista o vรญdeo e me conta, qual se encaixa melhor no seu perfil? Beijooos ๐
Ah, e nรฃo esquece de se inscrever no meu canal pra nรฃo perder nenhum vรญdeo: http://bit.ly/2nT2ZOw
E me acompanhe pra ficar por dentro de tudo sobre tecnologia: Instagram: http://maga.lu/1โฆ
View On WordPress
#Aumentar sinal wifi#canal da lu#Como melhorar o sinal wifi#Como melhorar sinal wifi#lu explica#magalu#magazine luiza#O que รฉ powerline#O que รฉ repetidor de sinal wifi#Powerline#Repetidor#Repetidor de sinal#Repetidor de sinal celular#Repetidor de sinal wifi#Sinal rede wireless fraco#wifi
0 notes
Link
Vim Advent Calendar 2012 ใฎ325ๆฅ็ฎใฎ่จไบใงใใ ๅฐใ้ทใใซใชใใพใใฎใงใใๆ้ใใใใจใใซใ่ชญใฟใใ ใใใ Vimใฎในใใผใฟในใฉใคใณใๆน้ ใใใใฉใฐใคใณใใLokaltog/powerlineใbling/vim-airlineใซ็ถใใฆitchyny/lightline. via Pocket
0 notes
Text
Tweeted
vim ใฎใใผใธใงใณใใใใ powerline ใใใ
โ tkhr (@tkhr5717) July 24, 2017
0 notes
Text
vimrc or magic comments?
Global vimrc files or adding comments at the top of each file, which Vim can then detect and use for variable values are the two main options. A third approach of using a plugin to make local vimrc take effect _only_ per project seems possible:
https://github.com/LucHermitte/local_vimrc https://github.com/powerline/powerline/issues/314 https://wiki.python.org/moin/Vim
Indentation A useful addition to Python source files is this comment: # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 This may need the modeline option enabled in your ~/.vimrc file: set modeline (In Debian and Ubuntu, for example, the modeline option has been disabled for security reasons.) The above # vim: ... text, when embedded in a source file, tells Vim that when the file is loaded, tabs are always expanded to spaces and that the width of each tab is four characters. Type the following in command mode to achieve the same effect: :set tabstop=8 expandtab shiftwidth=4 softtabstop=4 Or: :set ts=8 et sw=4 sts=4 If you want to do this automatically for all files identified as Python, add the following to ~/.vim/ftplugin/python.vim. Create the directory and/or file if it does not already exist. set tabstop=8 set expandtab set shiftwidth=4 set softtabstop=4
0 notes