Skip to content

Commit

Permalink
Merge pull request #84 from Avivbens/more-terminal-apps
Browse files Browse the repository at this point in the history
fix(apps): support `zoxide` and `bat`
  • Loading branch information
Avivbens authored Apr 24, 2024
2 parents 1340eb4 + 2424b81 commit 23e9af7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/commands/install/config/apps-groups/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@ export const TERMINAL_APPS: Readonly<IAppSetup[]> = [
commands: () => [BREW_TAP('cantino/mcfly'), BREW_INSTALL('cantino/mcfly/mcfly')],
fallbackCommands: () => [BROW_TAP('cantino/mcfly'), BROW_INSTALL('cantino/mcfly/mcfly')],
},
{
name: 'Bat',
description: 'Syntax highlighting for cat',
group: 'terminal',
tags: ['productivity'],
commands: () => [BREW_INSTALL('bat')],
},
{
name: 'Zoxide',
description: 'A faster way to navigate your filesystem - replace your native `cd` with memory-based autojump',
group: 'terminal',
tags: ['productivity'],
commands: () => [BREW_INSTALL('zoxide')],
},
{
name: 'ZSH Terminal Syntax Highlighting',
group: 'terminal',
Expand Down
11 changes: 11 additions & 0 deletions zsh/.entry-point.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,17 @@ if command -v mcfly &>/dev/null; then
eval "$(mcfly init zsh)"
fi

if command -v zoxide &>/dev/null; then
eval "$(zoxide init zsh)"
alias cd="z"
fi

if command -v bat &>/dev/null; then
export BAT_THEME="TwoDark"
alias cat="bat"
fi


# general
alias c="clear"
alias q="exit"
Expand Down

0 comments on commit 23e9af7

Please sign in to comment.