Skip to content

Instantly share code, notes, and snippets.

View MrRoiz's full-sized avatar
💻
Coding

Oscar Ruiz MrRoiz

💻
Coding
View GitHub Profile
@william8th
william8th / .tmux.conf
Last active April 30, 2024 17:03
Tmux open new pane in same directory
# Set the control character to Ctrl+Spacebar (instead of Ctrl+B)
set -g prefix C-space
unbind-key C-b
bind-key C-space send-prefix
# Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
@raygunsix
raygunsix / .tmux.conf
Created July 3, 2012 23:10
tmux config file
# Setting up the colors and copy/paste
set -g default-terminal "screen-256color"
# This is OS/X specific and should only be enabled when the 'reattach-to-user-namespace' is installed
set -g default-command "reattach-to-user-namespace -l /bin/bash"
bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
bind C-v run "tmux set-buffer $(reattach-to-user-namespace pbpaste); tmux paste-buffer"
# Make it use C-a, similar to screen..
unbind C-b
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 3, 2024 19:09
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname