2014年2月23日 星期日
2014年2月20日 星期四
tmux on mac
上次,在安裝tmux
Tmuxify your Tmux. Powerful session, window & pane management for Tmux.
1.先進入tmux中
2.再 tmuxxifier window-load example
https://github.com/zolrath/wemux
http://stackoverflow.com/questions/19920490/missing-tmux-config-file
Tmuxify your Tmux. Powerful session, window & pane management for Tmux.
1.先進入tmux中
2.再 tmuxxifier window-load example
#!/usr/bin/env bash
# I will take a crack at it.
# Here are some solutions off the top of my head.
# I do not run Mac but I run RH, Debian, FreeBSD, and Solaris, CYgwin and other stuff
# My understanding which is taken straight from man tmux;
# The '-f ' flag will specify an alternative configuration file.
# By default, tmux loads the system configuration
# file from /etc/tmux.conf, if present, then looks
# for a user configuration file at ~/.tmux.conf.
# The configuration file is a set of tmux commands which
# are executed in sequence when the server is first started.
unset temporary_array_tmp ; declare -a temporary_array_tmp
temporary_array_tmp=(/etc/tmux.conf ~/.tmux.conf)
# The next line creates an empty global and personal configuration file,
# if it individually does NOT exists.
for i_tmp in ${temporary_array_tmp[@]} ; do
[[ ! -f ${i_tmp} ]] && \
touch ${i_tmp} && \
echo -en "I created an empty tmux configuration file @ ${i_tmp}. " && \
echo -e "You need to add configuration settings to ${i_tmp} ." || \
echo -e "The tmux configuration file ${i_tmp} already exists."
done
# After you add configuration settings, then you need to tell tmux to reload the files.
for i_tmp in ${temporary_array_tmp[@]} ; do
[[ -f ${i_tmp} ]] && \
tmux source-file ${i_tmp} && \
echo -e "${i_tmp} The tmux configuration file ${i_tmp} is loaded." || \
echo -e "The tmux configuration file ${i_tmp} is NOT loaded."
done
unset temporary_array_tmp
# Mentionable Notes
# Next you can find tmux directories and/or files using find
# For example
# find ~/ /etc /usr -iname *tmux*
tmuxifier
https://github.com/jimeh/tmuxifier使用 tmux 與 tmuxifier 打造 Console 開發環
http://blog.lyhdev.com/2013/01/tmux-tmuxifier-console-screen.htmlhttps://github.com/zolrath/wemux
http://stackoverflow.com/questions/19920490/missing-tmux-config-file
2014年2月15日 星期六
套件管理工具 on mac
前言:
在之前我有介紹過tmux在windows cywin下的內容 ,而未來會在mac與windows的下合。
最近也開始了,使用了mac上建構開發的環境。
所以為此,所需的就是套件管理的部份。原先是常見的 MacPorts ,但在升級最新的10.9後其ports有問題(不能正常動作)故改以其它的方案。即今日所要介紹的Homebrew
Homebrew - The missing package manager for OS X
http://brew.sh/index_zh-tw.html
一開始一直找不到它的安裝路徑,網路上的都過期了。最後才看到這個。
1.而第一步就是將之前的mac ports做移除。
依照它的提示,即可將它移除。
2. 而接下則是依其中的內容,依照順序即可完成。
ref:
在之前我有介紹過tmux在windows cywin下的內容 ,而未來會在mac與windows的下合。
最近也開始了,使用了mac上建構開發的環境。
所以為此,所需的就是套件管理的部份。原先是常見的 MacPorts ,但在升級最新的10.9後其ports有問題(不能正常動作)故改以其它的方案。即今日所要介紹的Homebrew
Homebrew - The missing package manager for OS X
http://brew.sh/index_zh-tw.html
一開始一直找不到它的安裝路徑,網路上的都過期了。最後才看到這個。
依照它的提示,即可將它移除。
2. 而接下則是依其中的內容,依照順序即可完成。
http://brew.sh/
3.以tmux 為範例
A。先裝wget
$ brew install wget
B .
brew search 搜尋套件
brew info 查詢套件資訊
brew list 已經裝了哪些套件
brew update 更新 homebrew 自己
brew install 安裝套件
brew info 查詢套件資訊
brew list 已經裝了哪些套件
brew update 更新 homebrew 自己
brew install 安裝套件
ref:
Homebrew: 新一代 OSX 套件管理工具
http://ihower.tw/blog/archives/4308
Homebrew 讓 Mac OS X 輕鬆安裝軟體工具
http://blog.lyhdev.com/2011/06/homebrew-mac-os-x.html
install Homebrew is on the homepage
https://github.com/Homebrew/homebrew/wiki/installation
http://brew.sh/
http://tmux.sourceforge.net/
訂閱:
文章 (Atom)



