Skip to content

Instantly share code, notes, and snippets.

View kota65535's full-sized avatar

Tomohiko Ozawa kota65535

  • Sony
  • Tokyo, Japan
  • 19:30 (UTC +09:00)
  • X @kota65535
View GitHub Profile
@kota65535
kota65535 / chpwd_for_zsh.sh
Created November 26, 2016 08:11 — forked from yonchu/chpwd_for_zsh.sh
zshにてcd後に自動的にlsを行うchpwd関数。ファイル数が多い場合は省略表示します。(.zshrcに設定して使用します)
chpwd() {
ls_abbrev
}
ls_abbrev() {
# -a : Do not ignore entries starting with ..
# -C : Force multi-column output.
# -F : Append indicator (one of */=>@|) to entries.
local cmd_ls='ls'
local -a opt_ls
opt_ls=('-aCF' '--color=always')
@kota65535
kota65535 / tmux-do-not-combine-utf8.patch
Last active November 23, 2016 17:46 — forked from waltarix/tmux-do-not-combine-utf8.patch
tmux: Fix a problems with displaying Ambiguous-width, Japanese Dakuten and Handakuten signs.
diff --git a/screen-write.c b/screen-write.c
index 2b7fba0..5cd1a48 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -1052,6 +1052,7 @@ screen_write_cell(struct screen_write_ctx *ctx, const struct grid_cell *gc)
* If the width is zero, combine onto the previous character, if
* there is space.
*/
+ /*
if (width == 0) {