You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
grep 'alias bat'$bashrc>/dev/null && warn "alias bat already exists"|| gum confirm "Would you like to setup the alias 'bat' for 'batcat'?"&&echo -e "\nalias bat=batcat\n">>$bashrc
160
160
}
@@ -175,7 +175,7 @@ function install_delta {
175
175
176
176
functionshow_delta_git_setup {
177
177
echo"Write this to your git config if you want to use delta for git:"
178
-
cat<<EOF
178
+
gum format -t code<<EOF
179
179
# ~/.gitconfig
180
180
[core]
181
181
pager = delta
@@ -211,12 +211,12 @@ function install_broot {
211
211
}
212
212
213
213
functioninstall_fd {
214
-
__install_apt "fd-find"
214
+
__install_apt "fd-find"
215
215
}
216
216
217
217
functionsetup_fd_alias {
218
-
which fd >/dev/null 2>/dev/null && warn "command fd already exists - not making alias"&&return
219
-
which fdfind >/dev/null 2>/dev/null && (ln -s $(which fdfind) /usr/bin/fd) || warn "fd not installed - not making alias"
218
+
which fd >/dev/null 2>/dev/null && warn "command fd already exists - not making alias"&&return
219
+
which fdfind >/dev/null 2>/dev/null && (ln -s $(which fdfind) /usr/bin/fd) || warn "fd not installed - not making alias"
220
220
}
221
221
222
222
functioninstall_ripgrep {
@@ -236,13 +236,20 @@ function install {
236
236
which $pkg>/dev/null && warn "$name already installed"|| _install_tool "$name""$description"$method
237
237
}
238
238
239
-
functionmain {
240
-
require_sudo
239
+
functionprepare {
240
+
require_sudo$*
241
241
require_amd64
242
242
243
243
# gum can't use install since _install_tool uses gum
0 commit comments