Compare commits
No commits in common. '5fabe2f985a417d8d562c83984cd4fa0993276bb' and '738a3926859716921259c4602151386acd092cf4' have entirely different histories.
5fabe2f985
...
738a392685
@ -1,14 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Setup Dev Environment
|
- name: Setup Dev Environment
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
connection: local
|
become: yes
|
||||||
gather_facts: yes
|
become_user: cianhatton
|
||||||
# become: yes
|
|
||||||
# become_user: root
|
|
||||||
roles:
|
roles:
|
||||||
# TODO make this optional
|
- configure_git
|
||||||
# - update_packages
|
|
||||||
- git
|
|
||||||
- bash_profile
|
|
||||||
- tmux
|
|
||||||
- vim
|
|
||||||
|
|||||||
@ -1,26 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# https://github.com/chatton/dotfiles/blob/master/.bash_profile
|
|
||||||
|
|
||||||
# enable fzf with reverse search
|
|
||||||
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
|
||||||
|
|
||||||
function _setup_go() {
|
|
||||||
source /home/cianhatton/.gvm/scripts/gvm
|
|
||||||
gvm use go1.21
|
|
||||||
}
|
|
||||||
|
|
||||||
# gh pr list | fzf | awk '{print $1}' | gh pr view --web
|
|
||||||
function _parse_git_branch() {
|
|
||||||
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
|
|
||||||
}
|
|
||||||
|
|
||||||
# display git branch in the terminal prompt
|
|
||||||
export PS1='\[\e[1;91m\][\w]\[\e[0m\]\[\e[32m\]$(_parse_git_branch)\[\e[00m\]$ '
|
|
||||||
|
|
||||||
|
|
||||||
function setup() {
|
|
||||||
ansible-playbook /home/cianhatton/checkouts/ansible-dev-environment/main.yml
|
|
||||||
}
|
|
||||||
|
|
||||||
_setup_go
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Copy tmux conf.
|
|
||||||
ansible.builtin.copy:
|
|
||||||
src: bash_profile
|
|
||||||
dest: /home/cianhatton/.bash_profile
|
|
||||||
mode: '0644'
|
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
packages:
|
||||||
|
- sudo
|
||||||
|
- tmux
|
||||||
|
- vim
|
||||||
|
- npm
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
- name: Update Packages
|
||||||
|
ansible.builtin.apt:
|
||||||
|
upgrade: dist
|
||||||
|
update_cache: true
|
||||||
|
|
||||||
|
- name: Install desired packages
|
||||||
|
ansible.builtin.apt:
|
||||||
|
pkg:
|
||||||
|
- foo
|
||||||
|
- foo-tools
|
||||||
@ -1,29 +0,0 @@
|
|||||||
# Send prefix
|
|
||||||
set-option -g prefix C-a
|
|
||||||
unbind-key C-a
|
|
||||||
bind-key C-a send-prefix
|
|
||||||
|
|
||||||
# Use Alt-arrow keys to switch panes
|
|
||||||
bind -n M-Left select-pane -L
|
|
||||||
bind -n M-Right select-pane -R
|
|
||||||
bind -n M-Up select-pane -U
|
|
||||||
bind -n M-Down select-pane -D
|
|
||||||
|
|
||||||
# Shift arrow to switch windows
|
|
||||||
bind -n S-Left previous-window
|
|
||||||
bind -n S-Right next-window
|
|
||||||
|
|
||||||
# Mouse mode
|
|
||||||
setw -g mouse on
|
|
||||||
|
|
||||||
# Set easier window split keys
|
|
||||||
bind-key v split-window -h
|
|
||||||
bind-key h split-window -v
|
|
||||||
|
|
||||||
# Easy config reload
|
|
||||||
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded."
|
|
||||||
|
|
||||||
# Set new panes to open in current directory
|
|
||||||
bind c new-window -c "#{pane_current_path}"
|
|
||||||
bind '"' split-window -c "#{pane_current_path}"
|
|
||||||
bind % split-window -h -c "#{pane_current_path}"
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Install tmux packages
|
|
||||||
ansible.builtin.apt:
|
|
||||||
pkg:
|
|
||||||
- tmux
|
|
||||||
|
|
||||||
- name: Copy tmux conf.
|
|
||||||
ansible.builtin.copy:
|
|
||||||
src: tmux.conf
|
|
||||||
dest: /home/cianhatton/.tmux.conf
|
|
||||||
mode: '0644'
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Update Packages
|
|
||||||
ansible.builtin.apt:
|
|
||||||
upgrade: dist
|
|
||||||
cache_valid_time: 3600
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
" Turn on syntax highlighting
|
|
||||||
syntax on
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Install vim package.
|
|
||||||
ansible.builtin.apt:
|
|
||||||
pkg:
|
|
||||||
- vim
|
|
||||||
|
|
||||||
- name: Copy vimrc.
|
|
||||||
ansible.builtin.copy:
|
|
||||||
src: vimrc
|
|
||||||
dest: /home/cianhatton/.vimrc
|
|
||||||
mode: '0644'
|
|
||||||
Loading…
Reference in New Issue