This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
key.setGlobalKey(['C-x', '0'], function (ev, arg) { | |
SplitBrowser.activeBrowserCloseWindow(); | |
}, '現在のフレームを閉じる'); | |
key.setGlobalKey(['C-x', '1'], function (ev, arg) { | |
var url = SplitBrowser.activeBrowser != gBrowser ? SplitBrowser.activeSubBrowser.src : null; | |
var browsers = SplitBrowser.browsers; | |
for (var i = 0; i < browsers.length; ++i) | |
browsers[i].close(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# Usage | |
# | |
# cat <<EOF | ./org2doku | |
# * heading | |
# | |
# - item | |
# - sub item | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; -*- mode: Emacs-Lisp; coding: utf-8-unix -*- | |
;;; bashmarks.el - share bashmarks shortcuts with emacs | |
;; Copyright (C) tomykaira | |
;; Author: tomykaira <[email protected]> | |
;; Keywords: | |
;; This file is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the following two lines give a two-line status, with the current window highlighted | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]' | |
# huge scrollback buffer | |
defscrollback 5000 | |
# no welcome message | |
startup_message off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh() { | |
if [ "$(ps -p $(ps -p $$ -o ppid=) -o comm=)" = "tmux" ]; then | |
tmux rename-window "$(echo $* | cut -d . -f 1)" | |
command ssh "$@" | |
tmux set-window-option automatic-rename "on" 1>/dev/null | |
else | |
command ssh "$@" | |
fi | |
} |