標籤:wing define assets composite root awesome core 加壓 /bin/bash
Dash + Alfred
https://www.jianshu.com/p/77d2bf8df81f
對於程式員來說,查看api文檔是非常頻繁,經常視窗之間切換非常麻煩,mac下就有一個查文檔的神器:Dash。
詳細使用可以參考如上串連的說明。
本文重點整理下windows和linux下使用類似的功能如何操作。
IntelliJ外掛程式
https://github.com/gdelmas/IntelliJDashPlugin/releases
ShortcutYou can change the shortcut at Preferences -> Keymap -> Plug-ins -> Dash.Toolbar IconYou can add a button to the toolbar. Right-click the menubar -> Customize […]. You will find the button under "Plug-ins -> Dash".
zeal
dash只有mac版本,沒有windows版,以zeal為例說明
zeal官網:https://zealdocs.org/
文檔地址:
https://kapeli.com/cheatsheets
https://github.com/Kapeli/feeds
https://github.com/zealdocs/zeal
由於api的內容需要串連國外的網站下載,速度特別慢,建議採用如下的docsets節的內容手動下載和加壓即可
docsets
https://kapeli.com/docsets 這裡有docsets的一些相關資料
可以下載的內容有:https://github.com/Kapeli/feeds 這裡有完整列表,選擇某個xml檔案中,找到下載的地址下載對應的tgz檔案,下載完成後解壓到zeal對應的目錄下,然後重新啟動zeal即可
如下是一個參考的下載來源:
http://tokyo.kapeli.com/feeds/jQuery.tgz
http://tokyo.kapeli.com/feeds/Bash.tgz
http://tokyo.kapeli.com/feeds/C++.tgz
http://tokyo.kapeli.com/feeds/Boost.tgzhttp://tokyo.kapeli.com/feeds/Vagrant.tgzhttp://tokyo.kapeli.com/feeds/Gradle_DSL.tgzhttp://tokyo.kapeli.com/feeds/AWS_JavaScript.tgzhttp://tokyo.kapeli.com/feeds/Go.tgzhttp://tokyo.kapeli.com/feeds/Font_Awesome.tgzhttp://tokyo.kapeli.com/feeds/SQLAlchemy.tgzhttp://tokyo.kapeli.com/feeds/jQuery_UI.tgzhttp://tokyo.kapeli.com/feeds/JavaScript.tgzhttp://tokyo.kapeli.com/feeds/Spring_Framework.tgzhttp://tokyo.kapeli.com/feeds/RequireJS.tgzhttp://tokyo.kapeli.com/feeds/Docker.tgzhttp://tokyo.kapeli.com/feeds/Python_3.tgzhttp://tokyo.kapeli.com/feeds/Vim.tgzhttp://tokyo.kapeli.com/feeds/C.tgzhttp://tokyo.kapeli.com/feeds/Grails.tgzhttp://tokyo.kapeli.com/feeds/NodeJS.tgzhttp://tokyo.kapeli.com/feeds/CMake.tgzhttp://tokyo.kapeli.com/feeds/Groovy.tgzhttp://tokyo.kapeli.com/feeds/Bootstrap_3.tgzhttp://tokyo.kapeli.com/feeds/Java_SE9.tgzhttp://tokyo.kapeli.com/feeds/Elasticsearch.tgzhttp://singapore.kapeli.com/feeds/TypeScript.tgz
Linux編譯zeal
centos 7.1版本上沒有zeal的二進位安裝包,從源碼編譯有點麻煩。
由於zeal使用的是qt5版本,預設centos7沒有這個內容,需要進行一定的配置
依賴包
第一步,參考README安裝基礎的依賴包
yum install qt5-qtwebkit-devel.x86_64yum install xcb-util-keysyms-devel.x86_64yum install -y libarchive-devel.x86_64
ECM 【cmake modules】
此時執行cmake編譯時間提示如下的錯誤:
CMake Error at assets/CMakeLists.txt:2 (find_package): Could not find a package configuration file provided by "ECM" with any of the following names:
ECMConfig.cmake
ecm-config.cmake
Add the installation prefix of "ECM" to CMAKE_PREFIX_PATH or set "ECM_DIR" to a directory containing one of the above files. If "ECM" provides a
這個錯誤是和cmake有關的,缺少的內容安裝
yum install -y extra-cmake-modules.noarch
再次編譯,出現如下的問題,安裝qt5的包
Qt5 COMPONENTS X11Extras REQUIRED
yum install -y qt5-qtx11extras-devel.x86_64
此時如果編譯成功,即可運行,運行時出現如下問題:
libQt5Gui.so undefined reference hb_font_funcs_set_nominal_glyph_func
這個是harfbuzz的版本問題,只要安裝新的1.0.3.2版本即可【預設是0.#的版本】
yum install -y harfbuzz-devel.x86_64 [HarfBuzz is an OpenType text shaping engine]
此時即可運行
將編譯的包拷貝到其他的機器上運行
由於整個包依賴於qt,為了避免系統沒有安裝qt的問題,此處把相關的依賴放入獨立的目錄中,使用獨立的環境變數進行設定引導zeal
運行指令碼
具體的指令檔類似如下
#!/bin/bash
:<<EOF
~/.local/share/Zeal/Zeal/docsets
想看哪個解哪個!!!
tar -xzvf Java_SE9.tgz -C ~/.local/share/Zeal/Zeal/docsets/.
EOF
# 自動從FTP下載docsets,然後裝入zeal
num=`ls ~/.local/share/Zeal/Zeal/docsets | wc -l`
if [ "$num" = "0" ]; then
mkdir pkg
ftp -v -n <<END
open 172.16.1.201 21
user anonymous anonymous
binary
?
lcd pkg
cd /常用軟體/dash/docsets/
prompt
?
mget *.tgz
mget *.zip
close
bye
END
for file in ./pkg/*
do
echo $file
tar xzf $file -C ~/.local/share/Zeal/Zeal/docsets/.
done
rm -rf pkg
fi
?
# 運行zeal的相關設定和準備
BASE_DIR=$(cd "$(dirname "$0")"; pwd)
cd $BASE_DIR
?
export LD_LIBRARY_PATH=$BASE_DIR/dash
export FONTCONFIG_FILE=/etc/fonts/fonts.conf
export FONTCONFIG_PATH=/etc/fonts/
export QT_XKB_CONFIG_ROOT=/usr/share/X11/xkb
export QT_DEBUG_PLUGINS=1
?
cd dash
?
if [ -f /lib64/libharfbuzz.so.0.10302.0 ]; then
echo ‘true type font installed‘
else
rpm -i --force --nodeps *.rpm
fi
?
chmod +x zeal
./zeal
?
cd ..
?
依賴的檔案清單
dash:
harfbuzz-1.3.2-1.el7.x86_64.rpm
harfbuzz-devel-1.3.2-1.el7.x86_64.rpm
harfbuzz-icu-1.3.2-1.el7.x86_64.rpm
libcrypto.so
libcrypto.so.10
libcrypto.so.1.0.2k
libpcre2-16.so.0
libpcre2-16.so.0.5.0
libQt5Concurrent.prl
libQt5Concurrent.so
libQt5Concurrent.so.5
libQt5Concurrent.so.5.9
libQt5Concurrent.so.5.9.2
libQt5Core.prl
libQt5Core.so
libQt5Core.so.5
libQt5Core.so.5.9
libQt5Core.so.5.9.2
libQt5DBus.prl
libQt5DBus.so
libQt5DBus.so.5
libQt5DBus.so.5.9
libQt5DBus.so.5.9.2
libQt5EglFSDeviceIntegration.prl
libQt5EglFSDeviceIntegration.so
libQt5EglFSDeviceIntegration.so.5
libQt5EglFSDeviceIntegration.so.5.9
libQt5EglFSDeviceIntegration.so.5.9.2
libQt5EglFsKmsSupport.prl
libQt5EglFsKmsSupport.so
libQt5EglFsKmsSupport.so.5
libQt5EglFsKmsSupport.so.5.9
libQt5EglFsKmsSupport.so.5.9.2
libQt5Gui.prl
libQt5Gui.so
libQt5Gui.so.5
libQt5Gui.so.5.9
libQt5Gui.so.5.9.2
libQt5Location.so.5
libQt5Location.so.5.9
libQt5Location.so.5.9.2
libQt5Network.prl
libQt5Network.so
libQt5Network.so.5
libQt5Network.so.5.9
libQt5Network.so.5.9.2
libQt5OpenGL.prl
libQt5OpenGL.so
libQt5OpenGL.so.5
libQt5OpenGL.so.5.9
libQt5OpenGL.so.5.9.2
libQt5Positioning.so.5
libQt5Positioning.so.5.9
libQt5Positioning.so.5.9.2
libQt5PrintSupport.prl
libQt5PrintSupport.so
libQt5PrintSupport.so.5
libQt5PrintSupport.so.5.9
libQt5PrintSupport.so.5.9.2
libQt5Qml.prl
libQt5Qml.so
libQt5Qml.so.5
libQt5Qml.so.5.9
libQt5Qml.so.5.9.2
libQt5QuickParticles.prl
libQt5QuickParticles.so
libQt5QuickParticles.so.5
libQt5QuickParticles.so.5.9
libQt5QuickParticles.so.5.9.2
libQt5Quick.prl
libQt5Quick.so
libQt5Quick.so.5
libQt5Quick.so.5.9
libQt5Quick.so.5.9.2
libQt5QuickTest.prl
libQt5QuickTest.so
libQt5QuickTest.so.5
libQt5QuickTest.so.5.9
libQt5QuickTest.so.5.9.2
libQt5QuickWidgets.prl
libQt5QuickWidgets.so
libQt5QuickWidgets.so.5
libQt5QuickWidgets.so.5.9
libQt5QuickWidgets.so.5.9.2
libQt5Sensors.so.5
libQt5Sensors.so.5.9
libQt5Sensors.so.5.9.2
libQt5Sql.prl
libQt5Sql.so
libQt5Sql.so.5
libQt5Sql.so.5.9
libQt5Sql.so.5.9.2
libQt5Test.prl
libQt5Test.so
libQt5Test.so.5
libQt5Test.so.5.9
libQt5Test.so.5.9.2
libQt5WebChannel.so.5
libQt5WebChannel.so.5.9
libQt5WebChannel.so.5.9.2
libQt5WebKit.prl
libQt5WebKit.so
libQt5WebKit.so.5
libQt5WebKit.so.5.9
libQt5WebKit.so.5.9.1
libQt5WebKitWidgets.prl
libQt5WebKitWidgets.so
libQt5WebKitWidgets.so.5
libQt5WebKitWidgets.so.5.9
libQt5WebKitWidgets.so.5.9.1
libQt5Widgets.prl
libQt5Widgets.so
libQt5Widgets.so.5
libQt5Widgets.so.5.9
libQt5Widgets.so.5.9.2
libQt5X11Extras.prl
libQt5X11Extras.so
libQt5X11Extras.so.5
libQt5X11Extras.so.5.9
libQt5X11Extras.so.5.9.2
libQt5XcbQpa.prl
libQt5XcbQpa.so
libQt5XcbQpa.so.5
libQt5XcbQpa.so.5.9
libQt5XcbQpa.so.5.9.2
libQt5XmlPatterns.so.5
libQt5XmlPatterns.so.5.9
libQt5XmlPatterns.so.5.9.2
libQt5Xml.prl
libQt5Xml.so
libQt5Xml.so.5
libQt5Xml.so.5.9
libQt5Xml.so.5.9.2
libssl3.so
libssl.so
libssl.so.10
libssl.so.1.0.2k
libxcb-composite.so
libxcb-composite.so.0
libxcb-composite.so.0.0.0
libxcb-damage.so
libxcb-damage.so.0
libxcb-damage.so.0.0.0
libxcb-dpms.so
libxcb-dpms.so.0
libxcb-dpms.so.0.0.0
libxcb-dri2.so
libxcb-dri2.so.0
libxcb-dri2.so.0.0.0
libxcb-dri3.so
libxcb-dri3.so.0
libxcb-dri3.so.0.0.0
libxcb-ewmh.so.2
libxcb-ewmh.so.2.0.0
libxcb-glx.so
libxcb-glx.so.0
libxcb-glx.so.0.0.0
libxcb-icccm.so.4
libxcb-icccm.so.4.0.0
libxcb-image.so.0
libxcb-image.so.0.0.0
libxcb-keysyms.so
libxcb-keysyms.so.1
libxcb-keysyms.so.1.0.0
libxcb-present.so
libxcb-present.so.0
libxcb-present.so.0.0.0
libxcb-randr.so
libxcb-randr.so.0
libxcb-randr.so.0.1.0
libxcb-record.so
libxcb-record.so.0
libxcb-record.so.0.0.0
libxcb-render.so
libxcb-render.so.0
libxcb-render.so.0.0.0
libxcb-render-util.so.0
libxcb-render-util.so.0.0.0
libxcb-res.so
libxcb-res.so.0
libxcb-res.so.0.0.0
libxcb-screensaver.so
libxcb-screensaver.so.0
libxcb-screensaver.so.0.0.0
libxcb-shape.so
libxcb-shape.so.0
libxcb-shape.so.0.0.0
libxcb-shm.so
libxcb-shm.so.0
libxcb-shm.so.0.0.0
libxcb-sync.so
libxcb-sync.so.1
libxcb-sync.so.1.0.0
libxcb-util.so.1
libxcb-util.so.1.0.0
libxcb-xevie.so
libxcb-xevie.so.0
libxcb-xevie.so.0.0.0
libxcb-xf86dri.so
libxcb-xf86dri.so.0
libxcb-xf86dri.so.0.0.0
libxcb-xfixes.so
libxcb-xfixes.so.0
libxcb-xfixes.so.0.0.0
libxcb-xinerama.so
libxcb-xinerama.so.0
libxcb-xinerama.so.0.0.0
libxcb-xinput.so
libxcb-xinput.so.0
libxcb-xinput.so.0.1.0
libxcb-xkb.so
libxcb-xkb.so.1
libxcb-xkb.so.1.0.0
libxcb-xselinux.so
libxcb-xselinux.so.0
libxcb-xselinux.so.0.0.0
libxcb-xtest.so
libxcb-xtest.so.0
libxcb-xtest.so.0.0.0
libxcb-xvmc.so
libxcb-xvmc.so.0
libxcb-xvmc.so.0.0.0
libxcb-xv.so
libxcb-xv.so.0
libxcb-xv.so.0.0.0
platforms
zeal
?
dash/platforms:
libqeglfs.so
libqlinuxfb.so
libqminimalegl.so
libqminimal.so
libqoffscreen.so
libqvnc.so
libqxcb.so
?
windows/Linux下的程式員文檔瀏覽工具