diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-12-20 16:49:47 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-12-20 16:49:47 +0530 |
| commit | 568f7903ca7464f99df659b8488bd731e4f2c4f0 (patch) | |
| tree | dfa7f9d077eb85ec840c8bfcaa04c1d64cc5aa29 /external/zsh/aliases/dev.zsh | |
| parent | c580a9ec2a1a43a682117eca41c3867e8771117a (diff) | |
| download | nixos-config-568f7903ca7464f99df659b8488bd731e4f2c4f0.tar.gz nixos-config-568f7903ca7464f99df659b8488bd731e4f2c4f0.zip | |
Adds zsh config
Diffstat (limited to 'external/zsh/aliases/dev.zsh')
| -rw-r--r-- | external/zsh/aliases/dev.zsh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/external/zsh/aliases/dev.zsh b/external/zsh/aliases/dev.zsh new file mode 100644 index 0000000..c02eb20 --- /dev/null +++ b/external/zsh/aliases/dev.zsh @@ -0,0 +1,24 @@ + +alias aws="docker run --rm -it amazon/aws-cli" + +# :: Filename Pattern Replacetext +far() { + local file_r="$1"; shift; + local matcher_r="$1"; shift; + local result="$1"; shift; + fd "$file_r" | sad "$matcher_r" "$result" -p diff-so-fancy "$@"; +} + +# :: FileType Filename +codi() { + local syntax="${1:-python}" + shift + nvim -c \ + "let g:startify_disable_at_vimenter = 1 |\ + set bt=nofile ls=0 |\ + hi ColorColumn ctermbg=NONE |\ + hi VertSplit ctermbg=NONE |\ + hi NonText ctermfg=0 |\ + Codi $syntax" "$@" +} + |
