1
1
# vim: ft=sh
2
2
3
- # If not running interactively, don't do anything
3
+ # If not running interactively, don't do anything here. Anything
4
+ # needed in non-interactive shells goes in `.profile`
4
5
case $- in
5
6
* i* ) ;;
6
7
* ) return ;;
7
8
esac
8
9
9
- # Glorious editor
10
- set -o vi
11
-
12
10
# Make sure we have always loaded ~/.profile, which can get lost
13
11
# shellcheck source=/dev/null
14
12
source " $HOME /.profile"
15
13
16
14
# make less more friendly for non-text input files, see lesspipe(1)
17
15
[ -x /usr/bin/lesspipe ] && eval " $( SHELL=/bin/sh lesspipe) "
18
16
19
- # Clear C-w binding in order to re-bind in .inputrc
20
- stty werase undef
21
-
22
17
HISTFILE=$HOME /.bash_history
23
18
# Never forget
24
19
HISTFILESIZE=-1
@@ -156,20 +151,27 @@ if command_exists zoxide; then
156
151
eval " $( zoxide init bash --hook pwd) "
157
152
fi
158
153
159
- FD_COMMAND=" fd"
160
- if ! command_exists " ${FD_COMMAND} " ; then
161
- # Debian uses `fdfind`
162
- FD_COMMAND=" fdfind"
163
- fi
164
- export FD_COMMAND
165
-
166
154
BAT_COMMAND=" bat"
167
155
if ! command_exists " ${BAT_COMMAND} " ; then
168
156
# Debian uses `batcat`
169
157
BAT_COMMAND=" batcat"
170
158
fi
171
159
export BAT_COMMAND
172
160
161
+ EZA_COMMAND=" eza"
162
+ if ! command_exists " ${EZA_COMMAND} " ; then
163
+ # Debian uses `exa` until `eza` is available
164
+ EZA_COMMAND=" exa"
165
+ fi
166
+ export EZA_COMMAND
167
+
168
+ FD_COMMAND=" fd"
169
+ if ! command_exists " ${FD_COMMAND} " ; then
170
+ # Debian uses `fdfind`
171
+ FD_COMMAND=" fdfind"
172
+ fi
173
+ export FD_COMMAND
174
+
173
175
fzf_preview_command=" "
174
176
if command_exists pistol; then
175
177
fzf_preview_command=" 'pistol {}'"
@@ -188,12 +190,14 @@ if command_exists "${FD_COMMAND}"; then
188
190
export FZF_CTRL_T_COMMAND=" fd_with_git"
189
191
export FZF_ALT_C_COMMAND=" ${FD_COMMAND} --type directory --hidden --color always"
190
192
fi
191
- if command_exists exa; then
193
+
194
+ if command_exists " ${EZA_COMMAND} " ; then
192
195
# Show tree structure in preview window
193
196
export FZF_ALT_C_OPTS="
194
- --preview 'exa --tree --all {}'
197
+ --preview '${EZA_COMMAND} --tree --all {}'
195
198
"
196
199
fi
200
+
197
201
export FZF_DEFAULT_OPTS="
198
202
--ansi
199
203
--bind 'ctrl-alt-a:select-all'
@@ -209,9 +213,6 @@ export FZF_CTRL_T_OPTS="
209
213
"
210
214
export FZF_COMPLETION_OPTS=' --smart-case'
211
215
212
- # Use wayland for Firefox
213
- export MOZ_ENABLE_WAYLAND=1
214
-
215
216
# FZF keybindings (Debian)
216
217
source_if_exists " /usr/share/doc/fzf/examples/key-bindings.bash"
217
218
# FZF keybindings (Homebrew)
@@ -221,9 +222,6 @@ if command_exists fnm; then
221
222
eval " $( fnm env) "
222
223
fi
223
224
224
- # Opt-out of Eternal Terminal telemetry
225
- export ET_NO_TELEMETRY=1
226
-
227
225
# Load system bash completion
228
226
source_if_exists " /etc/bash_completion"
229
227
# Load Homebrew bash completion, see https://docs.brew.sh/Shell-Completion
0 commit comments