This commit is contained in:
Pim Kunis 2023-02-14 00:13:10 +01:00
parent c03dbc65bc
commit f6299e11e4
4 changed files with 7 additions and 29 deletions

View file

@ -14,7 +14,6 @@ My current setup is [Regolith OS](https://regolith-desktop.com/) which is basica
- thunderbird config - thunderbird config
- some kind of tag setup with: bootstrap, update, etc. - some kind of tag setup with: bootstrap, update, etc.
- i3 app shortcuts - i3 app shortcuts
- install fzf from repositories instead of git
Would like Ansible Vault to check in keypair for syncthing. Would like Ansible Vault to check in keypair for syncthing.
However, then I would need a password to unlock the vault. However, then I would need a password to unlock the vault.

View file

@ -45,12 +45,8 @@ if [[ $iatest > 0 ]]; then bind "set completion-ignore-case on"; fi
if [[ $iatest > 0 ]]; then bind "set show-all-if-ambiguous On"; fi if [[ $iatest > 0 ]]; then bind "set show-all-if-ambiguous On"; fi
# Set the default editor # Set the default editor
export EDITOR=nano export EDITOR=vi
export VISUAL=nano export VISUAL=vi
alias pico='edit'
alias spico='sedit'
alias nano='edit'
alias snano='sedit'
# To have colors for ls and all grep commands such as grep, egrep and zgrep # To have colors for ls and all grep commands such as grep, egrep and zgrep
export CLICOLOR=1 export CLICOLOR=1

View file

@ -1,6 +1,4 @@
export FZF_DEFAULT_COMMAND=ag export FZF_DEFAULT_COMMAND=fd
export FZF_COMPLETION_TRIGGER='**'
# Options to fzf command # Options to fzf command
export FZF_COMPLETION_OPTS='--border --info=inline' export FZF_COMPLETION_OPTS='--border --info=inline'
@ -10,7 +8,7 @@ export FZF_COMPLETION_OPTS='--border --info=inline'
# - The first argument to the function ($1) is the base path to start traversal # - The first argument to the function ($1) is the base path to start traversal
# - See the source code (completion.{bash,zsh}) for the details. # - See the source code (completion.{bash,zsh}) for the details.
_fzf_compgen_path() { _fzf_compgen_path() {
fdfind --hidden --follow --exclude ".git" . "$1" fdfind --type file --hidden --follow --exclude ".git" . "$1"
} }
# Use fd to generate the list for directory completion # Use fd to generate the list for directory completion
@ -33,16 +31,5 @@ _fzf_comprun() {
esac esac
} }
# Setup fzf source /usr/share/doc/fzf/examples/key-bindings.bash
# --------- source /usr/share/bash-completion/completions/fzf
if [[ ! "$PATH" == *~/repos/fzf/bin* ]]; then
PATH="${PATH:+${PATH}:}~/repos/fzf/bin"
fi
# Auto-completion
# ---------------
[[ $- == *i* ]] && source "~/repos/fzf/shell/completion.bash" 2> /dev/null
# Key bindings
# ------------
source "~/repos/fzf/shell/key-bindings.bash"

View file

@ -4,15 +4,11 @@
pkg: pkg:
- fd-find - fd-find
- bat - bat
- fzf
- name: Install .bashrc - name: Install .bashrc
copy: copy:
src: "{{ role_path }}/files/bashrc" src: "{{ role_path }}/files/bashrc"
dest: ~/.bashrc dest: ~/.bashrc
- name: Install fzf
git:
repo: https://github.com/junegunn/fzf.git
dest: ~/repos/fzf
depth: 1
- name: Install .fzf.bash - name: Install .fzf.bash
copy: copy:
src: "{{ role_path }}/files/fzf.bash" src: "{{ role_path }}/files/fzf.bash"