注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。
启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
-- | |
-- Created by: v1c77 | |
-- Created on: 2021/8/22 | |
-- | |
-- DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
-- Version 2, December 2004 | |
-- Copyright (C) 2021 v1c77 | |
-- Everyone is permitted to copy and distribute verbatim or modified |
/* | |
* IP checksumming functions. | |
* (c) 2008 Gerd Hoffmann <kraxel@redhat.com> | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; under version 2 of the License. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
<domain type='kvm' id='1'> | |
<name>Win8-HTPC-OVMF</name> | |
<uuid>a2c7ea78-f49a-ef5b-6b16-521d098d40c9</uuid> | |
<metadata> | |
<vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/> | |
</metadata> | |
<memory unit='KiB'>8388608</memory> | |
<currentMemory unit='KiB'>8388608</currentMemory> | |
<memoryBacking> | |
<nosharepages/> |
# ---------------------------------- | |
# Colors | |
# ---------------------------------- | |
NOCOLOR='\033[0m' | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
ORANGE='\033[0;33m' | |
BLUE='\033[0;34m' | |
PURPLE='\033[0;35m' | |
CYAN='\033[0;36m' |
tell application "System Preferences" | |
quit | |
delay 1 | |
launch | |
activate | |
tell application "System Events" | |
key down {option, command} | |
end tell | |
reveal pane id "com.apple.preference.displays" | |
tell application "System Events" |
ZOO_LOG4J_PROP="INFO,ROLLINGFILE" | |
ZOO_LOG_DIR="/var/log/zookeeper/" |