FEAT: Started install script
Added completion and suggestions for fzf Set git Signin on by default Changed prefix key to C-z FIX: Made sure forward and backward search keymappings will still work
This commit is contained in:
parent
ecd737e373
commit
4ad3dfc644
@ -9,3 +9,5 @@
|
|||||||
required = true
|
required = true
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = main
|
defaultBranch = main
|
||||||
|
[commit]
|
||||||
|
gpgsign = true
|
||||||
|
4
install.sh
Normal file
4
install.sh
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
2
nvim
2
nvim
@ -1 +1 @@
|
|||||||
Subproject commit c367bc015070c7605cd43fb424bcdbf5a6116998
|
Subproject commit e4ca8c6039a0d92e7f938e45b62c40ec1a09ed02
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
# Rebind the prefix key
|
# Rebind the prefix key
|
||||||
unbind C-b
|
unbind C-b
|
||||||
set-option -g prefix C-s
|
set-option -g prefix C-z
|
||||||
|
|
||||||
# Map pane selection to more easy vim like bindings
|
# Map pane selection to more easy vim like bindings
|
||||||
bind-key -n 'M-h' select-pane -L
|
bind-key -n 'M-h' select-pane -L
|
||||||
@ -33,10 +33,10 @@ set -g @dracula-show-left-icon \uebc8
|
|||||||
setw -g base-index 1
|
setw -g base-index 1
|
||||||
setw -g pane-base-index 1
|
setw -g pane-base-index 1
|
||||||
# - This prevents me from having to press escape twice
|
# - This prevents me from having to press escape twice
|
||||||
set -s escape-time 0
|
set -s escape-time 50
|
||||||
|
|
||||||
# allow mouse interaction
|
# allow mouse interaction
|
||||||
set-option -g mouse on
|
set-option -g mouse on
|
||||||
|
|
||||||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||||
run '~/.tmux/plugins/tpm/tpm'
|
run '~/.tmux/plugins/tpm/tpm'
|
||||||
|
18
zsh/.zshrc
18
zsh/.zshrc
@ -18,6 +18,8 @@ typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
|
|||||||
export ZSH="/home/nigel/.oh-my-zsh"
|
export ZSH="/home/nigel/.oh-my-zsh"
|
||||||
|
|
||||||
bindkey -v
|
bindkey -v
|
||||||
|
bindkey '^R' history-incremental-search-backward
|
||||||
|
bindkey '^S' history-incremental-search-forward
|
||||||
|
|
||||||
ZSH_THEME="lambda"
|
ZSH_THEME="lambda"
|
||||||
|
|
||||||
@ -33,10 +35,14 @@ ENABLE_CORRECTION="true"
|
|||||||
HIST_STAMPS="dd/mm/yyyy"
|
HIST_STAMPS="dd/mm/yyyy"
|
||||||
|
|
||||||
# Which plugins would you like to load?
|
# Which plugins would you like to load?
|
||||||
plugins=(git zsh-autosuggestions zsh-syntax-highlighting tmux debian themes)
|
plugins=(git vi-mode zsh-autosuggestions zsh-syntax-highlighting tmux debian themes)
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
# Add the fzf key-bindings and completions
|
||||||
|
source /usr/share/fzf/key-bindings.zsh
|
||||||
|
source /usr/share/fzf/completion.zsh
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
|
|
||||||
@ -51,10 +57,10 @@ if [[ -n $SSH_CONNECTION ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Personal aliases
|
# Personal aliases
|
||||||
alias zshconfig="mate ~/.zshrc"
|
alias zshconfig="nvim ~/.zshrc"
|
||||||
alias ohmyzsh="mate ~/.oh-my-zsh"
|
alias ohmyzsh="nvim ~/.oh-my-zsh"
|
||||||
alias dev="cd /home/nigel/Hacking/Development"
|
alias dev="cd /home/nigel/Hacking/Development"
|
||||||
|
alias dotfiles="cd /home/nigel/.dotfiles"
|
||||||
# Set Environment Variables
|
# Set Environment Variables
|
||||||
DOTNET_ROOT=$HOME/dotnet
|
DOTNET_ROOT=$HOME/dotnet
|
||||||
PATH=$PATH:$HOME/dotnet
|
PATH=$PATH:$HOME/dotnet
|
||||||
@ -71,6 +77,9 @@ export PATH=$PATH:$HOME/llvm/build/bin
|
|||||||
export PATH=$PATH:/usr/local/bin/nvim/bin:
|
export PATH=$PATH:/usr/local/bin/nvim/bin:
|
||||||
export PATH=$PATH:/opt/gradle/gradle-8.7/bin
|
export PATH=$PATH:/opt/gradle/gradle-8.7/bin
|
||||||
|
|
||||||
|
# Add GoLang
|
||||||
|
export PATH=$PATH:/usr/local/go/bin
|
||||||
|
|
||||||
|
|
||||||
# Add Autocompletion tools
|
# Add Autocompletion tools
|
||||||
_dotnet_zsh_complete()
|
_dotnet_zsh_complete()
|
||||||
@ -85,5 +94,6 @@ source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|||||||
# zsh paramater for dotnet cli tab completion
|
# zsh paramater for dotnet cli tab completion
|
||||||
compctl -K _dotnet_zsh_complete dotnet
|
compctl -K _dotnet_zsh_complete dotnet
|
||||||
|
|
||||||
|
eval "$(fzf --zsh)"
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user