1
0

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:
Nigel Barink 2024-04-03 21:09:33 +02:00
parent ecd737e373
commit 4ad3dfc644
Signed by: Nigel
GPG Key ID: C54278C495538619
5 changed files with 24 additions and 8 deletions

View File

@ -9,3 +9,5 @@
required = true
[init]
defaultBranch = main
[commit]
gpgsign = true

4
install.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

2
nvim

@ -1 +1 @@
Subproject commit c367bc015070c7605cd43fb424bcdbf5a6116998
Subproject commit e4ca8c6039a0d92e7f938e45b62c40ec1a09ed02

View File

@ -6,7 +6,7 @@
# Rebind the prefix key
unbind C-b
set-option -g prefix C-s
set-option -g prefix C-z
# Map pane selection to more easy vim like bindings
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 pane-base-index 1
# - This prevents me from having to press escape twice
set -s escape-time 0
set -s escape-time 50
# allow mouse interaction
set-option -g mouse on
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
run '~/.tmux/plugins/tpm/tpm'

View File

@ -18,6 +18,8 @@ typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
export ZSH="/home/nigel/.oh-my-zsh"
bindkey -v
bindkey '^R' history-incremental-search-backward
bindkey '^S' history-incremental-search-forward
ZSH_THEME="lambda"
@ -33,10 +35,14 @@ ENABLE_CORRECTION="true"
HIST_STAMPS="dd/mm/yyyy"
# 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
# Add the fzf key-bindings and completions
source /usr/share/fzf/key-bindings.zsh
source /usr/share/fzf/completion.zsh
# User configuration
source ~/.bashrc
@ -51,10 +57,10 @@ if [[ -n $SSH_CONNECTION ]]; then
fi
# Personal aliases
alias zshconfig="mate ~/.zshrc"
alias ohmyzsh="mate ~/.oh-my-zsh"
alias zshconfig="nvim ~/.zshrc"
alias ohmyzsh="nvim ~/.oh-my-zsh"
alias dev="cd /home/nigel/Hacking/Development"
alias dotfiles="cd /home/nigel/.dotfiles"
# Set Environment Variables
DOTNET_ROOT=$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:/opt/gradle/gradle-8.7/bin
# Add GoLang
export PATH=$PATH:/usr/local/go/bin
# Add Autocompletion tools
_dotnet_zsh_complete()
@ -85,5 +94,6 @@ source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
# zsh paramater for dotnet cli tab completion
compctl -K _dotnet_zsh_complete dotnet
eval "$(fzf --zsh)"
eval "$(starship init zsh)"