mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 22:22:40 +00:00
Added tmux and moved pure to brew
This commit is contained in:
@@ -11,9 +11,11 @@ brew "git"
|
|||||||
brew "mas"
|
brew "mas"
|
||||||
brew "neovim"
|
brew "neovim"
|
||||||
brew "node" # required for some LSP servers in neovim
|
brew "node" # required for some LSP servers in neovim
|
||||||
|
brew "pure"
|
||||||
brew "ripgrep"
|
brew "ripgrep"
|
||||||
brew "stow"
|
brew "stow"
|
||||||
brew "swift-format"
|
brew "swift-format"
|
||||||
|
brew "tmux"
|
||||||
brew "zsh"
|
brew "zsh"
|
||||||
brew "zsh-completions"
|
brew "zsh-completions"
|
||||||
|
|
||||||
|
|||||||
59
tmux/.tmux.conf
Normal file
59
tmux/.tmux.conf
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
|
||||||
|
# Some tweaks to the status line
|
||||||
|
set -g status-right "%H:%M"
|
||||||
|
set -g window-status-current-style "underscore"
|
||||||
|
|
||||||
|
# If running inside tmux ($TMUX is set), then change the status line to red
|
||||||
|
%if #{TMUX}
|
||||||
|
set -g status-bg red
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# Enable RGB colour if running in xterm(1)
|
||||||
|
set-option -sa terminal-overrides ",xterm*:Tc"
|
||||||
|
|
||||||
|
# Change the default $TERM to tmux-256color
|
||||||
|
set -g default-terminal "tmux-256color"
|
||||||
|
|
||||||
|
# No bells at all
|
||||||
|
set -g bell-action none
|
||||||
|
|
||||||
|
# Keep windows around after they exit
|
||||||
|
set -g remain-on-exit on
|
||||||
|
|
||||||
|
# Change the prefix key to C-a
|
||||||
|
set -g prefix C-a
|
||||||
|
unbind C-b
|
||||||
|
bind C-a send-prefix
|
||||||
|
|
||||||
|
# Turn the mouse on, but without copy mode dragging
|
||||||
|
set -g mouse on
|
||||||
|
unbind -n MouseDrag1Pane
|
||||||
|
unbind -Tcopy-mode MouseDrag1Pane
|
||||||
|
|
||||||
|
# A key to toggle between smallest and largest sizes if a window is visible in
|
||||||
|
# multiple places
|
||||||
|
bind F set -w window-size
|
||||||
|
|
||||||
|
# Keys to toggle monitoring activity in a window and the synchronize-panes option
|
||||||
|
bind m set monitor-activity
|
||||||
|
bind y set synchronize-panes\; display 'synchronize-panes #{?synchronize-panes,on,off}'
|
||||||
|
|
||||||
|
# split pane
|
||||||
|
bind v splitw
|
||||||
|
|
||||||
|
# reload new changes
|
||||||
|
#bind-key R source-file ~/.tmux.conf\; \display-message "sorce-file done"
|
||||||
|
|
||||||
|
|
||||||
|
# Create a single default session - because a session is created here, tmux
|
||||||
|
# should be started with "tmux attach" rather than "tmux new"
|
||||||
|
#new -d -s0 -nirssi 'exec irssi'
|
||||||
|
#set -t0:0 monitor-activity on
|
||||||
|
#set -t0:0 aggressive-resize on
|
||||||
|
#neww -d -ntodo 'exec emacs ~/TODO'
|
||||||
|
#setw -t0:1 aggressive-resize on
|
||||||
|
#neww -d -nmutt 'exec mutt'
|
||||||
|
#setw -t0:2 aggressive-resize on
|
||||||
|
#neww -d
|
||||||
|
#neww -d
|
||||||
|
#neww -d
|
||||||
@@ -32,10 +32,10 @@ zsh_add_file "zsh-exports"
|
|||||||
# Plugins
|
# Plugins
|
||||||
zsh_add_plugin "zsh-users/zsh-autosuggestions"
|
zsh_add_plugin "zsh-users/zsh-autosuggestions"
|
||||||
zsh_add_plugin "zsh-users/zsh-syntax-highlighting"
|
zsh_add_plugin "zsh-users/zsh-syntax-highlighting"
|
||||||
zsh_add_plugin "sindresorhus/pure"
|
#zsh_add_plugin "sindresorhus/pure"
|
||||||
|
|
||||||
# Prompt
|
# Prompt / managed by brew. (`brew install pure`)
|
||||||
fpath+="$ZDOTDIR/plugins/pure"
|
#fpath+="$ZDOTDIR/plugins/pure"
|
||||||
autoload -U promptinit; promptinit
|
autoload -U promptinit; promptinit
|
||||||
prompt pure
|
prompt pure
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,13 @@
|
|||||||
|
|
||||||
|
|
||||||
# clear the terminal
|
# clear the terminal
|
||||||
alias cl() { clear }
|
alias cl() {
|
||||||
|
if [[ "$TMUX_PANE" ]]; then
|
||||||
|
tmux send-keys -R\; clear-history
|
||||||
|
else
|
||||||
|
clear
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# move into the ~/.dotfiles directory
|
# move into the ~/.dotfiles directory
|
||||||
alias cdots() { cd "$HOME/.dotfiles" }
|
alias cdots() { cd "$HOME/.dotfiles" }
|
||||||
@@ -52,3 +58,5 @@ if [ $(hostname -s) = "Michaels-Mac-mini" ]; then
|
|||||||
alias projects() { cd "/Volumes/M1 Mac-Mini External Drive/Projects" }
|
alias projects() { cd "/Volumes/M1 Mac-Mini External Drive/Projects" }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# tmux
|
||||||
|
#alias ta() { tmux -f ~/.config/tmux/tmux.config attach "$@" }
|
||||||
|
|||||||
Reference in New Issue
Block a user