Skip to content

Commit

Permalink
feat(thefuck)!: Drop support for thefuck until it supports Python 3.12.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziwi01 committed Aug 27, 2024
1 parent 66c0856 commit 73d2e72
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 31 deletions.
22 changes: 11 additions & 11 deletions ansible/roles/config/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,17 @@
- config
- lazygit

- name: "[Config] Configure thefuck"
ansible.builtin.include_tasks:
file: thefuck.yml
apply:
tags:
- config
- thefuck
when: "'thefuck' not in config_tasks_exclude"
tags:
- config
- thefuck
# - name: "[Config] Configure thefuck"
# ansible.builtin.include_tasks:
# file: thefuck.yml
# apply:
# tags:
# - config
# - thefuck
# when: "'thefuck' not in config_tasks_exclude"
# tags:
# - config
# - thefuck

- name: "[Config] Configure ansible"
ansible.builtin.include_tasks:
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/config/templates/zshrc.j2
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ lazyload nvm -- "source '${NVM_DIR}/nvm.sh'"
ZSH_COLORIZE_TOOL=chroma

### The FUCK
lazyload fuck -- "eval $(thefuck --alias)"
bindkey -s '\e\e' 'fuck\n'
# lazyload fuck -- "eval $(thefuck --alias)"
# bindkey -s '\e\e' 'fuck\n'

### Fuzzy Finder

Expand Down
26 changes: 13 additions & 13 deletions ansible/roles/software/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,19 +177,19 @@
- versions
- gita

# thefuck
- name: "[Software] Install thefuck"
ansible.builtin.include_tasks:
file: thefuck.yml
apply:
tags:
- software
- thefuck
when: "'thefuck' not in software_tasks_exclude"
tags:
- software
- versions
- thefuck
# # thefuck
# - name: "[Software] Install thefuck"
# ansible.builtin.include_tasks:
# file: thefuck.yml
# apply:
# tags:
# - software
# - thefuck
# when: "'thefuck' not in software_tasks_exclude"
# tags:
# - software
# - versions
# - thefuck

- name: "[Software] Install bottom"
ansible.builtin.include_tasks:
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/software/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ github_packages:
kubectl_version: latest
# Packages and their versions to install with PIP
pip_packages:
thefuck: "latest"
gita: latest
tmuxp: 1.34.0
# thefuck: "latest"
# FZF
fzf_git_url: "https://github.com/junegunn/fzf.git"
fzf_home: "{{ ansible_env.HOME }}/.fzf"
Expand Down
4 changes: 2 additions & 2 deletions ansible/vars/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Also, you can manipulate which tasks from each role does not get executed, putti
```yaml
software_tasks_exclude:
- thefuck # do not install thefuck
- azurecli # do not install azurecli
config_tasks_exclude:
- zsh # do not configure Puppet
- zsh # do not configure zsh
```
If you are NOT using `systemd` on your WSL distro (see [README.md](./README.md) for details), set below:
Expand Down
8 changes: 6 additions & 2 deletions docs-web/docs/usage/20-terminal.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ To go back to `/home/user/projects/ansible`, use something like `z ansible` or `

## Find and open files with `fd` and `fzf`

Uses:
Uses:

- [fd](https://github.com/sharkdp/fd)
- [fzf](https://github.com/junegunn/fzf)
Expand Down Expand Up @@ -73,6 +73,10 @@ There is an alias `btail <file>`, which will use BAT as tail command. This gives

## Correct commands with `thefuck`

:::warning[thefuck dropped support]
Please note that for now thefuck installation is turned off until it supports Python 3.12.x.
:::

Uses: [thefuck](https://github.com/nvbn/thefuck)

Misspelling a command is a real pain in the ass. Here comes the solution. When you misspell a command, try hitting `ESC ESC` or just type `fuck` and hit enter.
Expand All @@ -92,7 +96,7 @@ There are lots of rules - see [rules list](https://github.com/nvbn/thefuck/tree/

Docker is installed and available for use. Confirm it with `systemctl status docker` :)

For Kubernetes management from CLI there is a [`kubectl`](https://kubernetes.io/docs/reference/kubectl/kubectl/). For GUI management use [`k9s`](https://k9scli.io/)
For Kubernetes management from CLI there is a [`kubectl`](https://kubernetes.io/docs/reference/kubectl/kubectl/). For GUI management use [`k9s`](https://k9scli.io/)

To setup a local kubernetes cluster for development purposes you can use [`kind create cluster`](https://kind.sigs.k8s.io/) which will quickly provision new cluster in Docker.

Expand Down

0 comments on commit 73d2e72

Please sign in to comment.