From 5f7f2c5b6ed9a9fdc7cb14594daf7e8ea29efd3f Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 17 Feb 2014 14:18:32 +0100 Subject: add screenrc --- content/posts/screenrc-like-tmux.rst | 19 +++++++++++++++++++ content/posts/utf8-irssi-madness.md | 35 ----------------------------------- content/posts/utf8-irssi-madness.rst | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 35 deletions(-) create mode 100644 content/posts/screenrc-like-tmux.rst delete mode 100644 content/posts/utf8-irssi-madness.md create mode 100644 content/posts/utf8-irssi-madness.rst diff --git a/content/posts/screenrc-like-tmux.rst b/content/posts/screenrc-like-tmux.rst new file mode 100644 index 0000000..9d5aabb --- /dev/null +++ b/content/posts/screenrc-like-tmux.rst @@ -0,0 +1,19 @@ +Make screen behave more like tmux +################################# +:date: 2014-02-17 14:11 +:tags: screen, tmux + +I am using tmux on pretty much all hosts i control but all-too-often i need to +work on retarded hosts which only have screen installed. + +I love to use ctrl-b because ctrl-a is the beginning of the line in default +bash keybindings. Here are my changes in ``~/.screenrc`` + +.. code-block:: bash + + # use ctrl-b as escape + escape ^Bb + # change title with ctrl-b - , (tmux-style) + bind , title + # sweet status bar + caption always "%{= wk} %-w%{= KW} [% %t] %{-}%+w %= | @%H | %l | %Y-%m-%d %c " diff --git a/content/posts/utf8-irssi-madness.md b/content/posts/utf8-irssi-madness.md deleted file mode 100644 index 5b6fb87..0000000 --- a/content/posts/utf8-irssi-madness.md +++ /dev/null @@ -1,35 +0,0 @@ -Title: Utf8 in an Irssi/tmux/putty/windows Stack -Date: 2012-06-22 -Tags: irssi, utf8 - -Getting irssi running with utf8 support in a putty/tmux stack is madness. Here -is what you have to do. - -add lines in .{ba,z}shrc: - - :::bash - export LANG=en_US.utf8 - export LC_ALL=en_US.utf8 - -add lines in .tmux.conf: - - :::bash - set-option -g default-terminal "rxvt" - set-window-option -g utf8 on - -in irssi: - - :::bash - /set term_charset UTF-8 - /set recode_autodetect_utf8 ON - /set recode_fallback UTF-8 - /set recode ON - /set recode_out_default_charset UTF-8 - /set recode_transliterate ON - /save - /quit - -in putty config: - - window -> translation -> Received data assumed to be in which character set: UTF-8 - -> Use Unicode line drawing code points diff --git a/content/posts/utf8-irssi-madness.rst b/content/posts/utf8-irssi-madness.rst new file mode 100644 index 0000000..5b6fb87 --- /dev/null +++ b/content/posts/utf8-irssi-madness.rst @@ -0,0 +1,35 @@ +Title: Utf8 in an Irssi/tmux/putty/windows Stack +Date: 2012-06-22 +Tags: irssi, utf8 + +Getting irssi running with utf8 support in a putty/tmux stack is madness. Here +is what you have to do. + +add lines in .{ba,z}shrc: + + :::bash + export LANG=en_US.utf8 + export LC_ALL=en_US.utf8 + +add lines in .tmux.conf: + + :::bash + set-option -g default-terminal "rxvt" + set-window-option -g utf8 on + +in irssi: + + :::bash + /set term_charset UTF-8 + /set recode_autodetect_utf8 ON + /set recode_fallback UTF-8 + /set recode ON + /set recode_out_default_charset UTF-8 + /set recode_transliterate ON + /save + /quit + +in putty config: + + window -> translation -> Received data assumed to be in which character set: UTF-8 + -> Use Unicode line drawing code points -- cgit v1.2.3