diff --git a/localzshrc b/localzshrc index e69de29..767e445 100644 --- a/localzshrc +++ b/localzshrc @@ -0,0 +1 @@ +alias spotlight='open /System/Library/CoreServices/Spotlight.app' diff --git a/tmux_yadr.conf b/tmux_yadr.conf deleted file mode 100644 index 9d376a9..0000000 --- a/tmux_yadr.conf +++ /dev/null @@ -1,170 +0,0 @@ -########## RESET THE COMMAND PREFIX ############# -# Set the command key to Ctrl A # - set-option -g prefix C-a -################################################# - -set-option -g default-shell /bin/zsh - -############################## -# Setup addition keybindings # -############################## - -# n to create a new window -bind n new-window - -# splitting panes -# START:panesplit -bind | split-window -h -bind - split-window -v -# END:panesplit - -# , or . to go to the prev or next window, < or > to move it -bind -r , previous-window -bind -r . next-window -bind < swap-window -t :- -bind > swap-window -t :+ - -# hjkl to Vim style movement between panes -bind -r h select-pane -L -bind -r j select-pane -D -bind -r k select-pane -U -bind -r l select-pane -R - -# HJKL to resize pane in that direction -bind -r H resize-pane -L 5 -bind -r J resize-pane -D 5 -bind -r K resize-pane -U 5 -bind -r L resize-pane -R 5 - -# - to last window -bind-key C-a last-window - -# r to rename window -bind-key r command-prompt 'rename-window %%' - -# to actually send through the prefix character -bind ` send-prefix - -# ESC for copy mode -unbind [ -bind Escape copy-mode - -# p to paste buffer -unbind p -bind p paste-buffer - -# P to choose which buffer to paste -bind P choose-buffer - -# In copy mode: -## v to vi-like visual selection -bind -t vi-copy 'v' begin-selection -## y to vi-like yank (copy to buffer) -bind -t vi-copy 'y' copy-selection - -# Ctrl-c to copy to system clipboard (requires xclip) -bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" - -# Ctrl-v to paste from system clipboard (requires xclip) -bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer" - -# Q to kill the pane -bind Q kill-pane - -# Ctrl+Q to kill the whole session- use with care! -bind C-Q kill-session - -# R to reload the tmux config -bind r source-file ~/.tmux.conf \; display "Reloaded!" - -# Clear -bind -n C-k send-keys C-c \; send-keys -R \; clear-history \; send-keys C-l - -# a to send C-a through to applications -bind C-a send-prefix - -# r to record commands in this pane -bind C-r pipe-pane -o "cat >>~/#S_#W.log" \; display "Toggled logging to ~/#S_#W.log" - -# y to toggle sending keystokes to all panes -bind y setw synchronize-panes - -############################### -# Setup behavioural stuff # -############################### - -# Lower the time before keypresses are sent through -set -s escape-time 1 - -# Set windows and panes to index from 1 (it's left-most on the keyboard, it's not an array) -set -g base-index 1 -setw -g pane-base-index 1 - -# Lets use the vi style keys -set -g mode-keys vi - -# Listen to mouse events (but try not to use them!) -# Set these to 'off' to go to hardcore keyboard-only mode -# Setting them off also avoids breaking terminal select/copy -setw -g mode-mouse off -#set -g mouse-select-pane on -#set -g mouse-resize-pane on -#set -g mouse-select-window on - -# Highlight unfocused windows which have activity -setw -g monitor-activity on -set -g visual-activity on - -# Make XTerm key bindings work, like C- for skipping left 1 word -set-window-option -g xterm-keys on - -# Window names displayed -set-window-option -g window-status-format ' #I: #W ' -set-window-option -g window-status-attr bold - -# When more than 1 session is attached, resize windows when only when they have multiple viewers -# (the default resizes all windows as soon as the 2nd session attaches) -setw -g aggressive-resize on - -############################### -# Setup Colours # -############################### - -# Make sure tmux knows we have some serious colour power -set -g default-terminal "xterm-256color" - -set-option -g status-bg "colour235" -set-option -g status-fg "colour249" - -setw -g window-status-current-fg "colour22" -setw -g window-status-current-bg "colour118" -setw -g window-status-current-attr bright - -############################### -# Setup Status Bar # -############################### - -set-option -g status on -set-option -g status-interval 5 -set-option -g status-utf8 on -set-option -g status-left-length 50 -set-option -g status-left "#[bg=colour118]#[fg=colour22] #S #I.#P #[bg=colour239]#[fg=colour254] #(~/.tmux-config/ip_status.sh) #[bg=default] " -set-option -g status-right-length 50 -set-option -g status-right "#[bg=colour239]#[fg=colour254] #H #[bg=colour250]#[fg=colour17] #(date +'%H:%M %d-%b-%y') " -set-option -g status-justify "centre" - -# List of plugins -# Supports `github_username/repo` or full git URLs -set -g @tpm_plugins " \ - tmux-plugins/tpm \ - tmux-plugins/tmux-sensible \ - tmux-plugins/tmux-resurrect -" -# Other examples: -# github_username/plugin_name \ -# git@github.com/user/plugin \ -# git@bitbucket.com/user/plugin \ - -# Initializes TMUX plugin manager. -# Keep this line at the very bottom of tmux.conf. -run-shell ~/.tmux/plugins/tpm/tpm diff --git a/zshrc b/zshrc index 9b0af12..a881bbc 100644 --- a/zshrc +++ b/zshrc @@ -50,7 +50,7 @@ plugins=(git) source $ZSH/oh-my-zsh.sh # Machine specific config -. localzshrc +. ~/dotfiles/localzshrc # User configuration