neovim: Merging config between the work laptop and a small change I made on my x220
This commit is contained in:
commit
ea57c0fc60
11 changed files with 57 additions and 9 deletions
17
.bashrc.d/aws-azure-login.sh
Normal file
17
.bashrc.d/aws-azure-login.sh
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# If aws-azure-login is not installed do nothing
|
||||||
|
if ! command -v aws-azure-login >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
# In WSL the no-sandbox parameter is mandatory for aws-azure-login to function
|
||||||
|
# correctly
|
||||||
|
if truthy $DOTFILES_WSL
|
||||||
|
then
|
||||||
|
alias aws-azure-login="aws-azure-login --no-sandbox"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Make it so I just have to type a command and the (optionally) a profile
|
||||||
|
function aws-token {
|
||||||
|
aws-azure-login --no-prompt ${1:+--profile $1}
|
||||||
|
}
|
|
@ -16,6 +16,7 @@ fi
|
||||||
possible_locations=(
|
possible_locations=(
|
||||||
"/usr/share/doc/git/contrib/completion/git-completion.bash"
|
"/usr/share/doc/git/contrib/completion/git-completion.bash"
|
||||||
"/usr/share/git/completion/git-completion.bash"
|
"/usr/share/git/completion/git-completion.bash"
|
||||||
|
"/usr/share/bash-completion/completions/git"
|
||||||
)
|
)
|
||||||
|
|
||||||
for completion_file in "${possible_locations[@]}"
|
for completion_file in "${possible_locations[@]}"
|
||||||
|
|
|
@ -3,6 +3,9 @@ function fuck {
|
||||||
local nth_last=${1:-1}
|
local nth_last=${1:-1}
|
||||||
if [[ "$nth_last" =~ ^[0-9]+$ ]]; then
|
if [[ "$nth_last" =~ ^[0-9]+$ ]]; then
|
||||||
sudo $(fc -ln -$nth_last -$nth_last)
|
sudo $(fc -ln -$nth_last -$nth_last)
|
||||||
|
else
|
||||||
|
echo "Usage: fuck [offset]"
|
||||||
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,11 +4,13 @@ Plug 'semanser/vim-outdated-plugins'
|
||||||
" Show trailing whitespaces (this could also easily be achieved by settings,
|
" Show trailing whitespaces (this could also easily be achieved by settings,
|
||||||
" but the plugin is very neat)
|
" but the plugin is very neat)
|
||||||
Plug 'ntpeters/vim-better-whitespace'
|
Plug 'ntpeters/vim-better-whitespace'
|
||||||
|
Plug 'vim-airline/vim-airline'
|
||||||
|
Plug 'w0rp/ale'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" Add a set of commands that will make the 80th column of a document visible
|
" Add a set of commands that will make the 80th column of a document visible
|
||||||
highlight ColorColumn ctermbg=244 guibg=lightgrey
|
highlight ColorColumn ctermbg=244 guibg=lightgrey
|
||||||
command Col let &colorcolumn=join(range(81,999),",")
|
command Col let &colorcolumn=join(range(81,100),",")
|
||||||
command NoCol set colorcolumn=
|
command NoCol set colorcolumn=
|
||||||
Col
|
Col
|
||||||
|
|
||||||
|
@ -29,3 +31,6 @@ set scrolloff=2
|
||||||
" Classic
|
" Classic
|
||||||
set number
|
set number
|
||||||
|
|
||||||
|
" Yaml Indent
|
||||||
|
"autocmd BufNewFile,BufReadPost *.{yaml,yml} set filetype=yaml foldmethod=indent
|
||||||
|
"autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
AWS_PROFILE=default-role
|
AWS_DEFAULT_REGION=eu-central-1
|
||||||
AWS_DEFAULT_REGION=eu-west-1
|
|
||||||
AWS_DEFAULT_OUTPUT=json
|
AWS_DEFAULT_OUTPUT=json
|
||||||
|
|
||||||
|
AZURE_APP_ID_URI=https://signin.aws.amazon.com/saml
|
||||||
|
AZURE_DEFAULT_DURATION_HOURS=12
|
||||||
|
|
2
.environment.d/aws_secrets.env.skel
Normal file
2
.environment.d/aws_secrets.env.skel
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
AZURE_TENANT_ID=
|
||||||
|
AZURE_DEFAULT_USERNAME=
|
5
.environment.d/git_secrets.env.skel
Normal file
5
.environment.d/git_secrets.env.skel
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
GIT_AUTHOR_NAME=""
|
||||||
|
GIT_AUTHOR_EMAIL=""
|
||||||
|
GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
|
||||||
|
GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
|
||||||
|
|
6
.environment.d/wsl.env
Normal file
6
.environment.d/wsl.env
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
if [[ $OSTYPE == linux-gnu && $(< /proc/sys/kernel/osrelease) == *Microsoft ]]
|
||||||
|
then
|
||||||
|
DOTFILES_WSL=true
|
||||||
|
else
|
||||||
|
DOTFILES_WSL=false
|
||||||
|
fi
|
|
@ -12,6 +12,7 @@
|
||||||
default = simple
|
default = simple
|
||||||
[core]
|
[core]
|
||||||
excludesfile = ~/.gitignore
|
excludesfile = ~/.gitignore
|
||||||
|
autocrlf = input
|
||||||
[status]
|
[status]
|
||||||
submoduleSummary = true
|
submoduleSummary = true
|
||||||
[pager]
|
[pager]
|
||||||
|
|
8
.github/README.md
vendored
8
.github/README.md
vendored
|
@ -26,7 +26,7 @@ git --work-tree=$HOME --git-dir=$HOME/.dotgit checkout master
|
||||||
- Status area horizonzal spacing
|
- Status area horizonzal spacing
|
||||||
- Vitals
|
- Vitals
|
||||||
|
|
||||||
# Missing Features (TODO)
|
## Missing Features (TODO)
|
||||||
- Vim relative line numbering
|
- Vim relative line numbering
|
||||||
- unset all variables
|
- unset all variables
|
||||||
- Initial Setup
|
- Initial Setup
|
||||||
|
@ -37,4 +37,10 @@ git --work-tree=$HOME --git-dir=$HOME/.dotgit checkout master
|
||||||
- missing executables warnings
|
- missing executables warnings
|
||||||
- environment templates? (git.env!)
|
- environment templates? (git.env!)
|
||||||
- fix the umask
|
- fix the umask
|
||||||
|
- Vim put the Yaml indent Stuff in a proper filetype detection script (ftplugin?)
|
||||||
|
- Vim also add cfn filetype for cfn-lint
|
||||||
|
|
||||||
|
## Echos to be replaced by msg()
|
||||||
|
- fuck error msg
|
||||||
|
- initial setup
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue