Skip to content

Commit

Permalink
added files
Browse files Browse the repository at this point in the history
  • Loading branch information
ta-yuhyeon committed Aug 13, 2024
1 parent bcbcad9 commit e0f89cd
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 12 deletions.
5 changes: 0 additions & 5 deletions .vimrc

This file was deleted.

14 changes: 14 additions & 0 deletions files/vimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
filetype on
syntax on
set number
set cursorline
set cursorcolumn
colorscheme desert

autocmd BufNewFile,BufRead *.yaml,*.yml set filetype=yaml
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab

autocmd BufRead,BufNewFile *.cfg set filetype=haproxy
autocmd FileType haproxy setlocal tabstop=4 shiftwidth=4 expandtab
autocmd FileType haproxy setlocal commentstring=#\ %s

1 change: 0 additions & 1 deletion zshrc → files/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ if [ -x /usr/bin/dircolors ]; then
fi

# some more ls aliases
source ~/.git-prompt.sh
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
Expand Down
22 changes: 16 additions & 6 deletions local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,22 @@
tasks:
- name: Init my personal setup
block:

- name: Copy zshrc file
ansible.builtin.copy:
src: ./zshrc
dest: "/Users/{{ ansible_user_id }}/.zshrc"
src: ./files/zshrc
dest: "~/.zshrc"
mode: "0644"
when: ansible_distribution == 'MacOSX'
- name: Copy zshrc file 2
ansible.builtin.debug:
msg: "hello there"
force: true

- name: Copy vimrc file
ansible.builtin.copy:
src: ./files/vimrc
dest: "~/.vimrc"
mode: "0644"
force: true

- name: Render gitconfig file

Check failure on line 22 in local.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

risky-file-permissions

File permissions unset or incorrect.
ansible.builtin.template:
src: gitconfig.j2
dest: ~/.gitconfig
11 changes: 11 additions & 0 deletions templates/gitconfig.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[user]

name = {{ git_name }}

email = {{ git_email }}

[alias]
br = branch
co = checkout
sts = status
sth = stash

0 comments on commit e0f89cd

Please sign in to comment.