๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

โœ”๏ธ Etc.

[MacOS] BitBar๋กœ 1์ผ 1์ปค๋ฐ‹ํ•ด๋ณด์ž

BitBar๋กœ 1์ผ 1์ปค๋ฐ‹ํ•˜๊ธฐ

 

 

 

 

 

๊ฐœ๋ฐœ์ž๋ถ„๋“ค ์ž”๋””๐ŸŒฑ์ฑ„์šฐ๊ธฐ ๋งŽ์ด ํ•˜์ž–์•„์š”. 1์ผ 1์ปค๋ฐ‹ ๋ชฉํ‘œ ๋‹ค๋“ค ์„ธ์šฐ์‹œ์ฃ ~~? 

ํ•˜์ง€๋งŒ ๋งค์ผ ๋ธŒ๋ผ์šฐ์ €๋ฅผ ํ†ตํ•ด github์— ๋“ค์–ด๊ฐ€ ์ž”๋””๋ฅผ ํ™•์ธ ํ•˜๋Š”๊ฑด ์—ฌ๊ฐ„ ๊ท€์ฐฎ์€ ์ž‘์—…์ด ์•„๋‹ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

์ €๋Š” ํ•ธ๋“œํฐ ์œ„์ ฏ์„ค์ •๋„ ํ•ด๋†“์•˜์ง€๋งŒ, ๋” ์‰ฝ๊ฒŒ ํ™•์ธํ•˜๊ธฐ์œ„ํ•ด!! BitBar๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ฐ์Šคํฌํƒ‘์—์„œ Github ์ž”๋”” ์ƒํƒœ๋ฅผ ์†์‰ฝ๊ฒŒ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

์ž”๋””๋ง๊ณ ๋„ BitBar์— ์œ ์šฉํ•œ ํ”Œ๋Ÿฌ๊ทธ์ธ๋“ค์ด ๋งŽ๋”๋ผ๊ณ ์š”๐Ÿ‘๐Ÿป์„ค์น˜๋ฐฉ๋ฒ•์„ ์ตํ˜€์„œ ํ™œ์šฉํ•˜๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.


โœ”๏ธ1.  BitBar ์„ค์น˜ํ•˜๊ธฐ

brew๋ฅผ ์ด์šฉํ•˜์—ฌ bitbar๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

โœ— brew cask install bitbar

๋งŒ์•ฝ ์„ค์น˜์‹œ Unknown command ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค๋ฉด ๋‹ค์Œ ๋ช…๋ น์–ด๋กœ ์„ค์น˜

โœ— brew install --cask bitbar

[๋ช…๋ น์–ด ์‹คํ–‰๊ฒฐ๊ณผ]

โžœ  ~ git:(master) โœ— brew cask install bitbar
Error: Unknown command: cask
โžœ  ~ git:(master) โœ— brew install --cask bitbar
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 3 taps (homebrew/core, homebrew/cask and homebrew/services).
==> New Formulae
...
==> Downloading https://github.com/matryer/bitbar/releases/download/v1.10.1/BitB
==> Downloading from https://objects.githubusercontent.com/github-production-rel
######################################################################## 100.0%
==> Installing Cask bitbar
==> Moving App 'BitBar.app' to '/Applications/BitBar.app'
๐Ÿบ  bitbar was successfully installed!

BitBar๊ฐ€ ์ œ๋Œ€๋กœ ์„ค์น˜๋˜์—ˆ๋Š”์ง€ ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ ํด๋”์—์„œ ํ™•์ธ!!


โœ”๏ธ2.  BitBar ํ”Œ๋Ÿฌ๊ทธ์ธ ์ถ”๊ฐ€

๊ธฐ์กด์˜ BitBar ์‚ฌ์ดํŠธ ๋Œ€์ฒด๋กœ ์•„๋ž˜ ์‚ฌ์ดํŠธ์—์„œ ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ๋Š” ํ”Œ๋Ÿฌ๊ทธ์ธ๋“ค์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

์‚ฌ์šฉํ•˜๊ณ  ์‹ถ์€ ํ”Œ๋Ÿฌ๊ทธ์ธ์„ ๋‹ค์šด๋ฐ›์•„ ์ถ”๊ฐ€ํ•ด์ค๋‹ˆ๋‹ค!! ๋‹ค์šด๋ฐ›๋Š” ๋ฒ•์€ ์•„๋ž˜์—~~

 

โœ”๏ธ2-1.  ํ”Œ๋Ÿฌ๊ทธ์ธ์„ ๋„ฃ์„ ๋””๋ ‰ํ† ๋ฆฌ ์ƒ์„ฑ

๋‹ค์šด ๋ฐ›์€ ํ”Œ๋Ÿฌ๊ทธ์ธ๋“ค์„ ๋„ฃ์–ด๋‘˜ ๋กœ์ปฌ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. 

mkdir ~/dev/workspace/bitbar-plugins

 

โœ”๏ธ2-2.  ํ”Œ๋Ÿฌ๊ทธ์ธ ๋‹ค์šด

์ €ํฌ๊ฐ€ ์‚ฌ์šฉํ•  ์ž”๋”” ํ”Œ๋Ÿฌ๊ทธ์ธ์€ Github ํ”Œ๋Ÿฌ๊ทธ์ธ์œผ๋กœ ์•„๋ž˜ ์ฃผ์†Œ๋กœ, ๋“ค์–ด๊ฐ€์„œ ํ”Œ๋Ÿฌ๊ทธ์ธ์„ ๋‹ค์šด๋ฐ›์Šต๋‹ˆ๋‹ค.

https://github.com/matryer/bitbar-plugins/blob/master/Dev/GitHub/github-contribution.10m.rb

 

GitHub - matryer/xbar-plugins: Plugin repository for xbar (the BitBar reboot)

Plugin repository for xbar (the BitBar reboot). Contribute to matryer/xbar-plugins development by creating an account on GitHub.

github.com

 

 


[ํ”Œ๋Ÿฌ๊ทธ์ธ ๋‹ค์šด ๋ฐฉ๋ฒ•]

1. ํ•ด๋‹น ํŽ˜์ด์ง€์—์„œ Raw ๋ฒ„ํŠผ ํด๋ฆญ!

 

2. ๋ฒ„ํŠผ ํด๋ฆญ์‹œ ๋‚˜์˜ค๋Š” ํ™”๋ฉด์—์„œ Command + S ๋กœ ์ €์žฅํ•˜๊ธฐ!

์ด๋•Œ, ์•„๊นŒ ์ƒ์„ฑํ•œ ํ”Œ๋Ÿฌ๊ทธ์ธ์„ ๋„ฃ์„ ๋””๋ ‰ํ† ๋ฆฌ์— ๋„ฃ์–ด์ฃผ์„ธ์š”!


 

 

ํ”Œ๋Ÿฌ๊ทธ์ธ ๋‹ค์šด ํ›„์—๋Š” ํ•ด๋‹น ๋””๋ ‰ํ† ๋ฆฌ์— ๋“ค์–ด๊ฐ€์„œ ํ„ฐ๋ฏธ๋„์„ ์‹คํ–‰ํ•˜์—ฌ ruby ์ฝ”๋“œ๋ฅผ ์˜ฎ๊ฒจ์ค๋‹ˆ๋‹ค.

โžœ  bitbar-plugins git:(master) โœ— touch github-contribution.10m.rb

๋˜ํ•œ, Github ๊ณ„์ •์„ ์…‹ํŒ…ํ•ด์ค๋‹ˆ๋‹ค.

โžœ  bitbar-plugins git:(master) โœ— vi github-contribution.10m.rb
# Github ๊ณ„์ •์ •๋ณด ์ž…๋ ฅ
[github_contribution]
username = <GITHUB_USERNAME>
max_contributions = 10

์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ๊ณ„์ •์ •๋ณด๊ฐ€ ์ž˜ ์ ์šฉ๋๋Š”์ง€ ํ™•์ธ!!!!!

โžœ  bitbar-plugins git:(master) โœ— open ~/.bitbarrc

 


[๊ฒฐ๊ณผ ํ™”๋ฉด]

๐Ÿ”ฅ์ปค๋ฐ‹ ์ „! ๊ธฐ๋ณธ์€ ๋˜ฅ ์ด๋ชจํ‹ฐ์ฝ˜์ด๋„ค์š”...

๐Ÿ”ฅ์ปค๋ฐ‹ ํ›„! 1 Commitํ•˜๋‹ˆ ์ƒˆ์‹น์ด ๋˜์—ˆ์–ด์š”!

[๋ฐ˜์˜์‹œ์ ]

โœ”๏ธ ์ž๋™ : ์ปค๋ฐ‹ ํ›„ 2๋ถ„๋’ค ์ž๋™์œผ๋กœ ๋ฐ˜์˜๋จ

โœ”๏ธ ์ˆ˜๋™ : Preferences > Refresh all ํด๋ฆญํ•˜์—ฌ ๋ฐ”๋กœ ๋ฐ˜์˜ ๊ฐ€๋Šฅ

 

 

 

 


*์ด๋ชจํ‹ฐ์ฝ˜ ๋ณ€๊ฒฝํ•˜๊ธฐ

vi ํŽธ์ง‘์œผ๋กœ ์ด๋ชจํ‹ฐ์ฝ˜ ๋ณ€๊ฒฝ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค~! ๐Ÿ˜Š ๊ธฐ์กด์˜ poop(๐Ÿ’ฉ)์„ sob(๐Ÿ˜ญ)์œผ๋กœ ๋ฐ”๊ฟจ์–ด์š”.

โžœ  bitbar-plugins git:(master) โœ— vi github-contribution.10m.rb

...
def icon
  case count
  # emoji ๋ณ€๊ฒฝ
  # when 0    then ':sob:'
  when 0    then ':rage:'
  when 1..3 then ':seedling:'
  when 4..9 then ':herb:'
  else           ':deciduous_tree:'
  end
end
...

[๊ฒฐ๊ณผํ™”๋ฉด]

์ด์ œ 0์ปค๋ฐ‹์—๋Š” ๋˜ฅ์•„๋‹ˆ๊ตฌ ์šฐ๋Š” ์ด๋ชจํ‹ฐ์ฝ˜์ด ๋‚˜์˜ต๋‹ˆ๋‹ค~

 

 

 

 

 

์ด๋•Œ, ์‚ฌ์šฉํ•  ์ด๋ชจํ‹ฐ์ฝ˜ ์ด๋ฆ„์€ ์•„๋ž˜ ์‚ฌ์ดํŠธ๋ฅผ ํ†ตํ•ด ํ™•์ธ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค! 

https://www.webfx.com/tools/emoji-cheat-sheet/

 

๐ŸŽ Emoji cheat sheet for GitHub, Basecamp, Slack & more

Emoji codes used by GitHub, Basecamp, Slack and other services. Searchable. With emoji meanings.

www.webfx.com

 

728x90
๋ฐ˜์‘ํ˜•