zsh-users/zsh-apple-touchbar — 351★ trên GitHub (Ruby). Make your touchbar more powerful.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Add the plugin to the list of plugins for Oh My Zsh to load:
plugins=(zsh-apple-touchbar)
Start a new terminal session.
Customization
Automatic
You can define simple commands for FN keys in config.yml file.
Structure
File should have two base keys:
default_view - default view to show.
views - list of defined views.
views section contains views you want to show. Key is a view name.
Under view name key you should define next keys:
text - text that will show on touchbar key.
command or view - command means executing some command that under is this key and view means show view that is under this key
back - under this key should be a view name that will be shown after executing some command.
Example
default_view: first
views:
first:
1:
text: 👉 pwd
command: pwd |tr -d "\\n" |pbcopy
2:
text: second view
view: second
3:
text: third view
view: third
second:
1:
text: 👈 back
view: first
2:
text: current path
command: pwd
back: first
third:
1:
text: 👈 back
view: first
2:
text: ls
command: ls -la
For generating view from config.yml file go to its folder:
cd $ZSH_CUSTOM/plugins/zsh-apple-touchbar
and run generate.rb file:
ruby generate.rb
Custom
If you need more complicated logic you can rewrite zsh-apple-touchbar.zsh file on your own.
View functions
For each view you need to define separate function that will contain keys creation. E.G.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/zsh-users/zsh-apple-touchbar là nguồn chính thức.
zsh-users/zsh-apple-touchbar có bao nhiêu sao?
zsh-users/zsh-apple-touchbar có 351 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/zsh-users/zsh-apple-touchbar. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
zsh-users/zsh-apple-touchbar có phải mã nguồn mở không?
Có — zsh-users/zsh-apple-touchbar phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/zsh-users/zsh-apple-touchbar.
zsh-users/zsh-apple-touchbar còn đang phát triển không?
Commit gần nhất trên zsh-users/zsh-apple-touchbar là 3.4 năm trước (theo timestamp GitHub). Repo có 20 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
zsh-users/zsh-apple-touchbar là gì?
zsh-users/zsh-apple-touchbar (zsh-users/zsh-apple-touchbar) là dự án Ruby trên GitHub. Theo mô tả gốc: Make your touchbar more powerful.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về zsh-apple-touchbar?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về zsh-apple-touchbar.