Skip to content

Commit

Permalink
Merge pull request #60 from TechDufus/misc_sorry
Browse files Browse the repository at this point in the history
adding stuuuuffff
  • Loading branch information
TechDufus authored Sep 11, 2023
2 parents 7b59b2f + b36bda1 commit 9540039
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions pre_tasks/detect_wsl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
args:
executable: /bin/bash
ignore_errors: true
changed_when: false
- name: Register WSL State fact
ansible.builtin.set_fact:
ansible_host_environment_is_wsl: "{{ ansible_host_environment_is_wsl.stdout }}"
9 changes: 9 additions & 0 deletions roles/bash/files/bash/git_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ gacp() {
git push -u origin $(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
}

gacpgh() {
git add -A
git commit -m "$*"
git push -u origin $(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
gh pr create --fill
gh pr review --approve
gh pr merge -dm
}

parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ [\1]/'
}
1 change: 1 addition & 0 deletions roles/bat/tasks/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
sed -E 's/.*"([^"]+)".*/\1/' |
sed 's/v//'
register: command_result
changed_when: false
failed_when: >
command_result.rc != 0 or
not command_result.stdout|regex_search('\w+\.\w+\.\w+')
Expand Down
2 changes: 1 addition & 1 deletion roles/docker/tasks/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
ansible.builtin.template:
dest: "/etc/docker/daemon.json"
src: "daemon.json"
mode: 0644
mode: "0644"
become: true
notify: restart_docker
2 changes: 2 additions & 0 deletions roles/neovim/files/lua/techdufus/core/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ keymap(normal_mode, "<C-Right>", ":vertical resize +2<CR>", opts)
keymap(normal_mode, "<S-l>", ":bnext<CR>", opts)
keymap(normal_mode, "<S-h>", ":bprevious<CR>", opts)

-- Toggle Word Wrap --
keymap(normal_mode, "<leader>tw", ":set wrap!<CR>", opts)

-- Visual --
-- Stay in indent mode
Expand Down
2 changes: 1 addition & 1 deletion roles/npm/tasks/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
- name: "NPM | Extract NodeJS"
ansible.builtin.unarchive:
src: /tmp/{{ nodejs_packoge_name }}.tar.xz
dest: /tmp
dest: /tmp/
remote_src: true
extra_opts: "--strip-components=1"

Expand Down
1 change: 0 additions & 1 deletion roles/python/tasks/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
loop:
- bpytop
- shell-gpt==0.9.0
become: true

- name: "Python | Ensure bpytop directory structure exists"
ansible.builtin.file:
Expand Down

0 comments on commit 9540039

Please sign in to comment.