启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
tmux at [-t 会话名]
| var https = require('https'), | |
| user = process.argv[2], | |
| opts = parseOpts(process.argv.slice(3)) | |
| request('/users/' + user, function (res) { | |
| if (!res.public_repos) { | |
| console.log(res.message) | |
| return | |
| } | |
| var pages = Math.ceil(res.public_repos / 100), |
| #!/bin/zsh -f | |
| autoload -U colors | |
| colors | |
| print " | |
| ZSH Color definitions: | |
| \e[1mprompt simple\e[0m [\e[1m<\e[0mcolor1\e[1m>\e[0m[\e[1m<\e[0mcolor2\e[1m>\e[0m[\e[1m<\e[0mcolor3\e[1m>\e[0m[\e[1m<\e[0mstring1\e[1m>\e[0m[\e[1m<\e[0mstring2\e[1m>\e[0m[\e[1m<\e[0mstring3\e[1m>\e[0m]]]]]] | |
| Supply up to three \e[1mcolors\e[0m and then up to three alternate static \e[1mprompt strings \e[0m. | |
| \e[1mcolor1\e[0m is the local prompt color: \e[1mzsh-% \e[0m color1=default | |
| \e[1mcolor2\e[0m is the remote prompt color: \e[31m$HOST:r:r-%\e[0m color2=red | |
| \e[1mcolor3\e[0m is the screensession prompt color: \e[1mScreen-% \e[0m color3=default |
| [user] | |
| name = Your Name | |
| email = your.name@mail.com | |
| [color] | |
| ui = true | |
| [core] | |
| excludesfile = ~/.gitignore_global | |
| editor = /usr/local/bin/mvim -f |
| # Setting the prefix from C-b to C-a | |
| set -g prefix C-a | |
| # Free the original Ctrl-b prefix keybinding | |
| unbind C-b | |
| #setting the delay between prefix and command | |
| set -sg escape-time 1 | |
| # Ensure that we can send Ctrl-A to other apps |