forked from byt3bl33d3r/AnsiblePlaybooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfish.yml
75 lines (63 loc) · 2.12 KB
/
fish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
- name: Install fish with oh-my-fish
hosts: all
tasks:
- name: Update repositories cache and install deps
apt:
name:
- git
- fish
- python2
- python3
- curl
- tmux
- mosh
- golang
- pipenv
update_cache: yes
- name: Install virtualfish via pip
pip:
name:
- virtualfish
- name: Get GPG keys for RVM install package
shell: gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
- name: Install RVM
shell: curl -sSL https://get.rvm.io | bash -s stable
args:
warn: false
- name: Install fisher
shell: curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish
args:
warn: false
- name: Install fish-pipenv
shell: fisher add kennethreitz/fish-pipenv
args:
executable: /usr/bin/fish
- name: Configure fish-pipenv
copy:
content: set pipenv_fish_fancy yes
dest: "{{ ansible_env.HOME }}/.config/fish/config.fish"
- name: Git clone oh-my-fish
git:
repo: https://github.com/oh-my-fish/oh-my-fish
dest: /tmp/oh-my-fish
- name: Install oh-my-fish
shell: bin/install --offline --noninteractive --yes
args:
chdir: /tmp/oh-my-fish/
- name: Configure oh-my-fish before.init.fish
copy:
content: |
set -g VIRTUALFISH_PYTHON "/usr/bin/python"
set -g VIRTUALFISH_PLUGINS "auto_activation"
set -g VIRTUALFISH_HOME $HOME/.local/share/virtualenvs/
dest: "{{ ansible_env.HOME }}/.config/omf/before.init.fish"
- name: Configure oh-my-fish init.fish
copy:
content: set -xg GOPATH $HOME/Tools/go
dest: "{{ ansible_env.HOME }}/.config/omf/init.fish"
- name: Install oh-my-fish plugins and theme
shell: omf install sushi extract rvm virtualfish
args:
executable: /usr/bin/fish
- name: Change default shell to fish
shell: chsh -s /usr/bin/fish