# Ubuntu Setup ###### tags: `Ubuntu` `Linux` `setup` ## Zsh + powerlevel10k #### Install zsh https://zimocp.github.io/2019/05/20/Ubuntu-18-04-LTS-%E7%BE%8E%E5%8C%96-%E7%BB%88%E7%AB%AF-Oh-my-zsh/ #### Install zimfw && powerlevel10k https://oalieno.github.io/2020/01/18/terminal/ #### Install extension - ZSH-z [github](https://github.com/agkozak/zsh-z) ## Font https://github.com/andreberg/Meslo-Font Linux: powerlevel10k recommand "Meslo LGS NF" [link](https://github.com/romkatv/powerlevel10k#meslo-nerd-font-patched-for-powerlevel10k) Windows: oh-my-posh recommand "Meslo LGM NF" [link](https://ohmyposh.dev/docs/installation#font) [Alternative List](https://github.com/ryanoasis/nerd-fonts#patched-fonts) ## Tmux #### Ref - mouse https://www.cnblogs.com/bamanzi/p/tmux-mouse-tips.html - plugin https://medium.com/starbugs/tpm-%E5%A5%97%E4%BB%B6%E7%AE%A1%E7%90%86%E5%B7%A5%E5%85%B7-%E8%AE%93%E4%BD%A0%E7%9A%84-tmux-%E6%9B%B4%E5%A5%BD%E7%94%A8-95ecd924c9d **.tmux.conf** ``` bash= set -g default-terminal "screen-256color" set -g mouse on bind '"' split-window -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" # List of plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum' # Other examples: # set -g @plugin 'github_username/plugin_name' # set -g @plugin 'git@github.com/user/plugin' # set -g @plugin 'git@bitbucket.com/user/plugin' # for vim set -g @resurrect-strategy-vim 'session' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run -b '~/.tmux/plugins/tpm/tpm' # **to be tested** bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" bind-key -T copy-mode MouseDragEnd1Pane send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" ```