Skip to content

Commit

Permalink
update zsh plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
pad92 committed Feb 2, 2019
1 parent e50dcee commit 9598e3c
Show file tree
Hide file tree
Showing 16 changed files with 4,284 additions and 3 deletions.
95 changes: 95 additions & 0 deletions .Xdefaults
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
!-------------------------------------------------------------------------------
! Xft settings
!-------------------------------------------------------------------------------

Xft.dpi: 96
Xft.antialias: false
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight

!-------------------------------------------------------------------------------
! URxvt settings
! Colours lifted from Solarized (http://ethanschoonover.com/solarized)
! More info at:
! http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.1.pod
!-------------------------------------------------------------------------------

URxvt.depth: 32
URxvt.geometry: 90x30
URxvt.transparent: false
URxvt.fading: 0
! URxvt.urgentOnBell: true
! URxvt.visualBell: true
URxvt.loginShell: true
URxvt.saveLines: 50
URxvt.internalBorder: 3
URxvt.lineSpace: 0

! Fonts
URxvt.allow_bold: false
/* URxvt.font: -*-terminus-medium-r-normal-*-12-120-72-72-c-60-iso8859-1 */
URxvt*font: xft:Monospace:pixelsize=14
URxvt*boldFont: xft:Monospace:pixelsize=14

! Fix font space
URxvt*letterSpace: -1

! Scrollbar
URxvt.scrollStyle: rxvt
URxvt.scrollBar: false

! Perl extensions
URxvt.perl-ext-common: default,matcher
URxvt.matcher.button: 1
URxvt.urlLauncher: firefox

! Cursor
URxvt.cursorBlink: true
URxvt.cursorColor: #657b83
URxvt.cursorUnderline: false

! Pointer
URxvt.pointerBlank: true

!!Source http://github.com/altercation/solarized

*background: #002b36
*foreground: #657b83
!!*fading: 40
*fadeColor: #002b36
*cursorColor: #93a1a1
*pointerColorBackground: #586e75
*pointerColorForeground: #93a1a1

!! black dark/light
*color0: #073642
*color8: #002b36

!! red dark/light
*color1: #dc322f
*color9: #cb4b16

!! green dark/light
*color2: #859900
*color10: #586e75

!! yellow dark/light
*color3: #b58900
*color11: #657b83

!! blue dark/light
*color4: #268bd2
*color12: #839496

!! magenta dark/light
*color5: #d33682
*color13: #6c71c4

!! cyan dark/light
*color6: #2aa198
*color14: #93a1a1

!! white dark/light
*color7: #eee8d5
*color15: #fdf6e3
56 changes: 56 additions & 0 deletions .Xresources
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#define S_base03 #002b36
#define S_base02 #073642
#define S_base01 #586e75
#define S_base00 #657b83
#define S_base0 #839496
#define S_base1 #93a1a1
#define S_base2 #eee8d5
#define S_base3 #fdf6e3

*background: S_base03
*foreground: S_base0
*fadeColor: S_base03
*cursorColor: S_base1
*pointerColorBackground:S_base01
*pointerColorForeground:S_base1

#define S_yellow #b58900
#define S_orange #cb4b16
#define S_red #dc322f
#define S_magenta #d33682
#define S_violet #6c71c4
#define S_blue #268bd2
#define S_cyan #2aa198
#define S_green #859900

!! black dark/light
*color0: S_base02
*color8: S_base03

!! red dark/light
*color1: S_red
*color9: S_orange

!! green dark/light
*color2: S_green
*color10: S_base01

!! yellow dark/light
*color3: S_yellow
*color11: S_base00

!! blue dark/light
*color4: S_blue
*color12: S_base0

!! magenta dark/light
*color5: S_magenta
*color13: S_violet

!! cyan dark/light
*color6: S_cyan
*color14: S_base1

!! white dark/light
*color7: S_base2
*color15: S_base3
3 changes: 2 additions & 1 deletion .vim/.netrwhist
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =0
let g:netrw_dirhist_cnt =1
let g:netrw_dirhist_1='/etc/xdg/waybar'
11 changes: 10 additions & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,16 @@ fi

ZSH_THEME="pad"

plugins=(command-not-found dnf extract github httpie rsync)
plugins=(ansible
archlinux
command-not-found
docker
docker-compose
extract
github
httpie
rsync
ssh-agent)

export ZSH_CACHE_DIR=${HOME}/.zcache
source ${ZSH}/init.zsh
Expand Down
2 changes: 1 addition & 1 deletion submodules/rsync-homedir-excludes
35 changes: 35 additions & 0 deletions zsh/plugins/ansible/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# ansible plugin

## Introduction

The `ansible plugin` adds several aliases for useful [ansible](https://docs.ansible.com/ansible/latest/index.html) commands and [aliases](#aliases).

To use it, add `ansible` to the plugins array of your zshrc file:

```
plugins=(... ansible)
```

## Aliases

| Command | Description |
|:-------------------------------------------|:--------------------------------------------------------------------|
| `ansible-version` / `aver` | Show the version on ansible installed in this host |
| `ansible-role-init <role name>` / `arinit` | Creates the Ansible Role as per Ansible Galaxy standard |
| `a` | command `ansible` |
| `aconf` | command `ansible-config` |
| `acon` | command `ansible-console` |
| `aconn` | command `ansible-connection` |
| `ainv` | command `ansible-inventory` |
| `aplay` | command `ansible-playbook` |
| `ainv` | command `ansible-inventory` |
| `adoc` | command `ansible-doc` |
| `agal` | command `ansible-galaxy` |
| `apull` | command `ansible-pull` |
| `aval` | command `ansible-vault` |

## Maintainer

### [Deepankumar](https://github.com/deepan10)

[https://github.com/deepan10/oh-my-zsh/tree/features/ansible-plugin](https://github.com/deepan10/oh-my-zsh/tree/features/ansible-plugin)
29 changes: 29 additions & 0 deletions zsh/plugins/ansible/ansible.plugin.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Functions
function ansible-version(){
ansible --version
}

function ansible-role-init(){
if ! [ -z $1] ; then
echo "Ansible Role : $1 Creating...."
ansible-galaxy init $1
tree $1
else
echo "Usage : ansible-role-init <role name>"
echo "Example : ansible-role-init role1"
fi
}

# Alias
alias a='ansible '
alias aconf='ansible-config '
alias acon='ansible-console '
alias aconn='ansible-connection '
alias aver='ansible-version'
alias arinit='ansible-role-init'
alias aplay='ansible-playbook '
alias ainv='ansible-inventory '
alias adoc='ansible-doc '
alias agal='ansible-galaxy '
alias apull='ansible-pull '
alias aval='ansible-vault'

0 comments on commit 9598e3c

Please sign in to comment.