Ngoprek Tmux
TlawXp - Mungkin kalian akan ada bertanya gini "Min gimana sih supaya termux kita layarnya jadi banyak", gampang itu mh tinggal ikutin tutorialnya di sini, sebelum ikutin tutorialnya alangkah baiknya utamakan membaca dulu jangan main skip aja.
Apa itu Tmux
tmux adalah sebuah multiplekser terminal yang memungkinkan penggunanya untuk mengakses beberapa sesi terminal terpisah di dalam jendela terminal tunggal atau sesi terminal jarak jauh.
Instalasi
pkg install tmux
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
Configurasi Tmux
buat file .tmux.conf di directory home termux kalian, contoh.
touch ~/.tmux.conf
Salin config tmux yang di bawah ini, lalu paste ke file .tmux.conf yang kalian buat tadi.
# setting he prefix from C-b to C-a
# set -g prefix C-a
# unbind C-b
# start index of window/pane with 1, because we're humans, not computers
set -g base-index 1
setw -g pane-base-index 1
# set parent terminal title to reflect current window in tmux session
set -g set-titles on
set -g set-titles-string "#I:#W"
set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M'
# mouse setting
set -g mouse on
# set -g mouse-select-pane on
# set -g mouse-select-window on
# set -g terminal-overrides 'xterm*:smcup@:rmcup@'et -g mouse on
##############################################################
# KEY-BINDING
##############################################################
# some keybindings are covered by tmux-sensible and tmux-pain-control
# window selection with prefix ctrl-h or ctrl-l
# bind -r C-h select-window -t:-
# bind -r C-l select-window -t:+
##############################################################
# PANES
##############################################################
set -g pane-border-status top
set -g main-pane-width 1
set -g main-pane-height 1
set -g other-pane-width 1
set -g other-pane-height 1
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# tema power
set -g @plugin 'wfxr/tmux-power'
set -g @tmux_power_theme 'sky'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-copycat'
# plugin that highlights when you press tmux prefix key
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @prefix_highlight_fg 'white' # default is 'colour231'
set -g @prefix_highlight_bg 'blue' # default is 'colour13'
set -g @prefix_highlight_show_copy_mode 'on'
set -g @prefix_highlight_copy_mode_attr 'fg=black,bg=yellow,bold' # defaul
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin 'git@github.com:user/plugin'
# set -g @plugin 'git@bitbucket.com:user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
Jalankan perintah tmux, contoh.
tmux
Jika sudah masuk ke tmux, lalu tekan Kombinasi CTRL+b I, untuk instalasi plugin.
Gambar 1 : Tmux
Kalo sudah selesai instalasi, tekan ESC/ESCAPE untuk keluar dari instalasi plugin.
Penutup
Sekian tutorial dari saya, semoga bermanfaat buat kalian, untuk tutorial menggunakan tmux kalian bisa kunjungi disini.
Posting Komentar