Skip to content

Instantly share code, notes, and snippets.

View ntananh's full-sized avatar
🐍
Focusing

Nguyễn Tấn Anh ntananh

🐍
Focusing
View GitHub Profile
@bbqtd
bbqtd / macos-tmux-256color.md
Last active May 9, 2025 23:46
Installing tmux-256color for macOS

Installing tmux-256color for macOS

  • macOS 10.15.5
  • tmux 3.1b

macOS has ncurses version 5.7 which does not ship the terminfo description for tmux. There're two ways that can help you to solve this problem.

The Fast Blazing Solution

Instead of tmux-256color, use screen-256color which comes with system. Place this command into ~/.tmux.conf or ~/.config/tmux/tmux.conf(for version 3.1 and later):

@dipta10
dipta10 / .bash_profile
Last active November 16, 2021 17:36
Environment Setup: Vim, Tmux, Zsh, Vifm.
PATH=/opt/local/bin:$PATH
export PATH=/usr/local/bin:$PATH
source ~/.bashrc
#source ~/.vimrc
#source ~/.tmux.conf
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 23, 2025 14:04
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@zchee
zchee / actionlist.vim
Last active May 16, 2025 16:02
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 24, 2025 08:22
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@brendanhay
brendanhay / tmux-copy-mode-osx.md
Created February 8, 2012 14:15
Tmux, copy-mode, and OSX shenanigans.

Copy, with line wrapping!

If you've been trying to copy/paste text from a multi-pane tmux session with the mouse, you've probably been pretty pissed at the blissful ignorance a terminal application has of the rodent in your hand.

The alternative, which is quote-unqoute native copy/pasting using copy-mode takes a bit to get used to. So this is one solution for copying and pasting lines from a session with correct line wrapping behaviour, albeit keyboard only.

Disclaimer

Since copy-mode has similar concepts of marks, regions, and temp buffers to Emacs .. you'll probably find it straight forward if you're familar with Emacsen. For people using vi-mode in tmux, the same still applies but obviously the default key bindings will differ alot from what I show below.