Skip to content

Commit

Permalink
updating mode formatting and nvim filetype detection
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDufus committed Oct 26, 2023
1 parent 4d9a86d commit a6dd0f3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions bin/dotfiles
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,4 @@ if ! [[ -f "$IS_FIRST_RUN" ]]; then
touch "$IS_FIRST_RUN"
fi

# vi:ft=sh:
3 changes: 3 additions & 0 deletions roles/bash/files/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ COMPLETION_WAITING_DOTS="true"
# Would you like to use another custom folder than $OSH/custom?
# OSH_CUSTOM=/path/to/new-custom-folder

# don't put duplicate lines in the history. See bash(1) for more options
export HISTCONTROL=ignoredups

# To disable the uses of "sudo" by oh-my-bash, please set "false" to
# this variable. The default behavior for the empty value is "true".
OMB_USE_SUDO=true
Expand Down
14 changes: 7 additions & 7 deletions roles/bash/tasks/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,37 @@
var: ohmybash_is_installed

- name: "Bash | Install oh-my-bash"
when: not ohmybash_is_installed
block:
- name: "Bash | Download oh-my-bash Install Script"
ansible.builtin.get_url:
url: https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh
dest: /tmp/oh-my-bash.install.sh
force: true
mode: 0755
mode: 755

- name: "Bash | Run the install script"
ansible.builtin.script:
cmd: /tmp/oh-my-bash.install.sh

when: not ohmybash_is_installed

- name: "Bash | Copy .bashrc"
ansible.builtin.copy:
src: ".bashrc"
dest: "{{ ansible_user_dir }}/.bashrc"
mode: 0644
mode: "0644"

- name: "Bash | Copy .profile"
ansible.builtin.copy:
src: ".profile"
dest: "{{ ansible_user_dir }}/.profile"
mode: 0644
mode: "0644"

- name: "Bash | Copy custom bash config"
ansible.builtin.copy:
dest: "{{ ansible_user_dir }}/.config/"
src: "bash"
mode: 0644
mode: "0644"
directory_mode: 0755
force: true

Expand All @@ -52,7 +52,7 @@
dest: "{{ ansible_user_dir }}/.oh-my-bash/custom/"
src: "themes"
directory_mode: 0755
mode: 0644
mode: "0644"
force: true

- name: "Bash | Set default terminal"
Expand All @@ -65,7 +65,7 @@
ansible.builtin.template:
dest: "{{ ansible_user_dir }}/.config/bash/.bash_private"
src: ".bash_private.j2"
mode: 0644
mode: "0644"
no_log: true

- name: "Bash | Copy Private Files"
Expand Down
2 changes: 1 addition & 1 deletion roles/neovim/files/lua/techdufus/plugins/filetype.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ return {
tfstate = "json",
tfstate_backup = "json",
tfplan = "json",
sh = "bash",
sh = "sh",
},
},
},
Expand Down

0 comments on commit a6dd0f3

Please sign in to comment.