Skip to content

Commit

Permalink
feat: add tmux settings (#95)
Browse files Browse the repository at this point in the history
* add tmux settings

* change fish key-bindings
  • Loading branch information
murn0 committed Aug 3, 2023
1 parent cfbe40a commit f371866
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .config/fish/functions/fish_user_key_bindings.fish
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
function fish_user_key_bindings

# Ctrl+c : Zのディレクトリ移動履歴をfzfで表示
bind \cc zi
# Ctrl+z : Zのディレクトリ移動履歴をfzfで表示
bind \cz zi
# fzf.fishのキーバインド
# Ctrl+r : コマンド履歴検索, Ctrl+s : ファイル、ディレクトリパス検索, Ctrl+v : 変数検索, Ctrl+g : git log検索
fzf_configure_bindings --history=\cr --directory=\cs --variables=\cv --git_log=\cg --git_status --processes
# Ctrl+r : コマンド履歴検索, Ctrl+f : ファイル、ディレクトリパス検索, Ctrl+v : 変数検索, Ctrl+l : git log検索
fzf_configure_bindings --history=\cr --directory=\cf --variables=\cv --git_log=\cl --git_status --processes

# Ctrl+g : gituiを起動
bind \cg gitui

end
20 changes: 19 additions & 1 deletion .config/tmux/tmux.conf
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
set-option -g allow-passthrough on
set -g allow-passthrough on
setw -g mouse on

# プレフィックスキーをCtrl-bからCtrl-sに変更する
unbind C-b
set -g prefix C-s

# C-d でデタッチする
bind C-d detach-client

# | でペインを縦分割する
bind | split-window -h

# - でペインを縦分割する
bind - split-window -v

# ウィンドウとペインのインデックスを1から始める
set -g base-index 1
setw -g pane-base-index 1

0 comments on commit f371866

Please sign in to comment.