Compare commits
	
		
			2 commits
		
	
	
		
			244f545182
			...
			23012f42db
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 23012f42db | |||
| ccb866bb58 | 
					 3 changed files with 19 additions and 6 deletions
				
			
		
							
								
								
									
										22
									
								
								.bashrc
									
										
									
									
									
								
							
							
						
						
									
										22
									
								
								.bashrc
									
										
									
									
									
								
							|  | @ -1,6 +1,4 @@ | ||||||
| # ~/.bashrc: executed by bash(1) for non-login shells. | # ~/.bashrc: executed by bash(1) for non-login shells. | ||||||
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) |  | ||||||
| # for examples |  | ||||||
| 
 | 
 | ||||||
| # If not running interactively, don't do anything | # If not running interactively, don't do anything | ||||||
| case $- in | case $- in | ||||||
|  | @ -9,7 +7,6 @@ case $- in | ||||||
| esac | esac | ||||||
| 
 | 
 | ||||||
| # don't put duplicate lines or lines starting with space in the history. | # don't put duplicate lines or lines starting with space in the history. | ||||||
| # See bash(1) for more options |  | ||||||
| HISTCONTROL=ignoreboth | HISTCONTROL=ignoreboth | ||||||
| 
 | 
 | ||||||
| # append to the history file, don't overwrite it | # append to the history file, don't overwrite it | ||||||
|  | @ -158,8 +155,12 @@ fi | ||||||
| # Custom dircolors | # Custom dircolors | ||||||
| [ -f ~/.dircolors ] && eval "$(dircolors ~/.dircolors)" | [ -f ~/.dircolors ] && eval "$(dircolors ~/.dircolors)" | ||||||
| 
 | 
 | ||||||
|  | # Set nvim as the preferred editor if available | ||||||
|  | if [ $(which nvim) ]; then | ||||||
|  |   export EDITOR=nvim | ||||||
|  | fi | ||||||
|  | 
 | ||||||
| # Kubernetes | # Kubernetes | ||||||
| export EDITOR=nano |  | ||||||
| alias k9=k9s | alias k9=k9s | ||||||
| which kubectl 1> /dev/null && source <(kubectl completion bash) | which kubectl 1> /dev/null && source <(kubectl completion bash) | ||||||
| which helm 1> /dev/null && source <(helm completion bash) | which helm 1> /dev/null && source <(helm completion bash) | ||||||
|  | @ -183,3 +184,16 @@ PROMPT_COMMAND="${PROMPT_COMMAND};history -a" | ||||||
| # Funciton to notify after a long-running command | # Funciton to notify after a long-running command | ||||||
| alias bell="echo -e '\a'" | alias bell="echo -e '\a'" | ||||||
| 
 | 
 | ||||||
|  | # Apply local .bashrc to remote ssh session | ||||||
|  | ssh-custom() { | ||||||
|  |   remote_file=$(mktemp) | ||||||
|  |   if $(ssh "$@" "cat > ${remote_file}" < ~/.bashrc > /dev/null 2>&1); then | ||||||
|  |     # Successfully copied bashrc to the remote. Source it upon ssh | ||||||
|  |     ssh -t "$@" "bash --rcfile ${remote_file}; rm ${remote_file}" | ||||||
|  |   else | ||||||
|  |     # SSH Config specifies a RemoteCommand; connect normally | ||||||
|  |     ssh "$@" | ||||||
|  |   fi | ||||||
|  | } | ||||||
|  | alias sssh=ssh-custom | ||||||
|  | 
 | ||||||
|  |  | ||||||
|  | @ -1 +0,0 @@ | ||||||
| /home/d_mcknight/.dotfiles/.tmux |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| return { | return { | ||||||
|   "lewis6991/gitsigns.nvim", |   "lewis6991/gitsigns.nvim", | ||||||
|   --branch="v1.0.2", |   tag="v1.0.2", | ||||||
|   config = function() |   config = function() | ||||||
|     require("gitsigns").setup({}) |     require("gitsigns").setup({}) | ||||||
|   end, |   end, | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue