mirror of
https://gitlab.com/sagidayan/linux-config.git
synced 2024-11-22 07:15:25 +00:00
Merge branch 'gh-releases-man-ac' into 'main'
github release role update See merge request sagidayan/linux-config!5
This commit is contained in:
commit
56e75dfb6c
4 changed files with 37 additions and 4 deletions
|
@ -108,8 +108,10 @@ source ~/.shellconfig/aliases.sh
|
||||||
source ~/.shellconfig/environment.sh
|
source ~/.shellconfig/environment.sh
|
||||||
# Functions
|
# Functions
|
||||||
source ~/.shellconfig/functions.sh
|
source ~/.shellconfig/functions.sh
|
||||||
|
# Auto complete functions
|
||||||
|
if [ -d ~/.shellconfig/autocomplete ]; then
|
||||||
|
[ "$(ls -A ~/.shellconfig/autocomplete/)" ] && source <(cat ~/.shellconfig/autocomplete/*)
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Start tmux if not in a session
|
# Start tmux if not in a session
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
- git
|
- git
|
||||||
- ranger
|
- ranger
|
||||||
- jq
|
- jq
|
||||||
|
- man-db
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Some more packages (RedHat based)
|
- name: Some more packages (RedHat based)
|
||||||
|
@ -64,6 +65,11 @@
|
||||||
path: ~/.shellconfig
|
path: ~/.shellconfig
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
|
- name: Verifying shell autocomplete config folder
|
||||||
|
file:
|
||||||
|
path: ~/.shellconfig/autocomplete
|
||||||
|
state: directory
|
||||||
|
|
||||||
- name: Sync Common shell settings...
|
- name: Sync Common shell settings...
|
||||||
changed_when: false
|
changed_when: false
|
||||||
copy:
|
copy:
|
||||||
|
|
|
@ -38,9 +38,27 @@
|
||||||
- name: Moving bin to /usr/local/bin
|
- name: Moving bin to /usr/local/bin
|
||||||
become: true
|
become: true
|
||||||
shell: |
|
shell: |
|
||||||
cp /tmp{{ bin_path }} /usr/local/bin/{{ name }}
|
cp /tmp{{ bin_path }} /usr/local/bin/
|
||||||
when: version != local_version
|
when: version != local_version
|
||||||
|
|
||||||
|
- name: Adding man page if needed
|
||||||
|
become: true
|
||||||
|
shell: |
|
||||||
|
cp /tmp{{ man_path }} /usr/share/man/man1/
|
||||||
|
register: added_man
|
||||||
|
when: man_path is defined and (version != local_version)
|
||||||
|
|
||||||
|
- name: Update mandb if needed
|
||||||
|
become: true
|
||||||
|
shell: mandb
|
||||||
|
when: added_man is defined
|
||||||
|
|
||||||
|
- name: Adding autocomplete if needed
|
||||||
|
shell: |
|
||||||
|
cp /tmp/{{ autocomplete_path }} ~/.shellconfig/autocomplete/
|
||||||
|
when: autocomplete_path is defined and (version != local_version)
|
||||||
|
|
||||||
- name: Updating local version entry
|
- name: Updating local version entry
|
||||||
shell: echo {{ version }} > {{ local_version_file }}
|
shell: echo {{ version }} > {{ local_version_file }}
|
||||||
when: version != local_version
|
when: version != local_version
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
vars:
|
vars:
|
||||||
name: bat
|
name: bat
|
||||||
repo: sharkdp/bat
|
repo: sharkdp/bat
|
||||||
bin_path: "/bat*/bat"
|
bin_path: "/bat-*/bat"
|
||||||
|
man_path: "/bat-*/bat.1"
|
||||||
|
autocomplete_path: "/bat-*/autocomplete/bat.bash"
|
||||||
filter: x86_64-unknown-linux-gnu
|
filter: x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
- name: verify Bat (better Cat) theme
|
- name: verify Bat (better Cat) theme
|
||||||
|
@ -25,6 +27,7 @@
|
||||||
name: btm
|
name: btm
|
||||||
repo: ClementTsang/bottom
|
repo: ClementTsang/bottom
|
||||||
bin_path: "/btm"
|
bin_path: "/btm"
|
||||||
|
autocomplete_path: "/completion/btm.bash"
|
||||||
filter: bottom_x86_64-unknown-linux-gnu.tar.gz
|
filter: bottom_x86_64-unknown-linux-gnu.tar.gz
|
||||||
|
|
||||||
- name: Installing gitui
|
- name: Installing gitui
|
||||||
|
@ -60,6 +63,8 @@
|
||||||
name: lsd
|
name: lsd
|
||||||
repo: Peltoche/lsd
|
repo: Peltoche/lsd
|
||||||
bin_path: "/lsd-*/lsd"
|
bin_path: "/lsd-*/lsd"
|
||||||
|
man_path: "/lsd-*/lsd.1"
|
||||||
|
autocomplete_path: "/lsd-*/autocomplete/lsd.bash-completion"
|
||||||
filter: x86_64-unknown-linux-gnu.tar.gz
|
filter: x86_64-unknown-linux-gnu.tar.gz
|
||||||
|
|
||||||
- name: Installing ripgrep (grep like)
|
- name: Installing ripgrep (grep like)
|
||||||
|
@ -69,5 +74,7 @@
|
||||||
name: rg
|
name: rg
|
||||||
repo: BurntSushi/ripgrep
|
repo: BurntSushi/ripgrep
|
||||||
bin_path: "/ripgrep-*/rg"
|
bin_path: "/ripgrep-*/rg"
|
||||||
|
man_path: "/ripgrep-*/doc/rg.1"
|
||||||
|
autocomplete_path: "/ripgrep-*/complete/rg.bash"
|
||||||
filter: x86_64-unknown-linux-musl.tar.gz
|
filter: x86_64-unknown-linux-musl.tar.gz
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue