Skip to content

Commit 6a1f2a8

Browse files
committedAug 5, 2019
A couple of new aliases
1 parent 204b178 commit 6a1f2a8

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed
 

‎.aliases

+10
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ function ysh(){
146146
fi
147147
}
148148

149+
function wssh(){
150+
for i in `wss "$1" --short ` ; do
151+
screen -t $i ssh $i
152+
done
153+
}
154+
149155
# Git
150156
alias syncupstream="git fetch upstream && git checkout master && git merge upstream/master"
151157

@@ -198,6 +204,10 @@ function kubeimage(){
198204
function kubenodepods(){
199205
kubectl get pods --field-selector "spec.nodeName=$1" --all-namespaces
200206
}
207+
function kubenodedelpods(){
208+
kubectl get pods --all-namespaces --field-selector "spec.nodeName=$1" -o json | jq '.items[] | "kubectl delete pods \(.metadata.name) -n \(.metadata.namespace)"'
209+
}
210+
201211

202212
# Glances
203213
alias glances="docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host --network host -it nicolargo/glances"

‎.vimrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let g:solarized_termtrans=1
1414
" Make Vim more useful
1515
set nocompatible
1616
" Use the OS clipboard by default (on versions compiled with `+clipboard`)
17-
set clipboard=unnamed
17+
" set clipboard=unnamed
1818
" Enhance command-line completion
1919
set wildmenu
2020
" Allow cursor keys in insert mode

‎VIM.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ wget -O $HOME/.vim/plugin/puppet_helpers.vim \
1212

1313
* **Parameters description** In `VISUAL` mode select class parameters,
1414
press `CTRL+P`. Then in `INSERT` mode you can paste parameters description
15-
template by pressing `CTRL+r` and then `p`.
15+
template by pressing `CTRL+r` and then `p` (or `"pp` in normal mode).
1616

1717
[ASCIINEMA DEMO](https://asciinema.org/a/k5ZjjpkRcT7vDmGqmnR6ZFEO7)
1818

1919
* **Parameters validation** In `VISUAL` mode select class parameters (you can
2020
include class name in selection if you want to use Qualified Variable Names),
2121
press `CTRL+O`. Then in `INSERT` mode you can paste parameters validation
22-
functions pressing `CTRL+r` and then `o`.
22+
functions pressing `CTRL+r` and then `o` (or `"op` in normal mode).
2323

2424
[ASCIINEMA DEMO](https://asciinema.org/a/GmS7qDXN8nYShjSPsi9atPCP4)

0 commit comments

Comments
 (0)
Please sign in to comment.