Skip to content

Commit

Permalink
👍 using eza instead of exa
Browse files Browse the repository at this point in the history
  • Loading branch information
PiroHiroPiro committed Apr 28, 2024
1 parent 3b77795 commit a118495
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ nvim/.config/dein/repos/
!zsh/.zsh_aliases
!zsh/.zshrc
!zsh/.config/zsh/tmux.zsh
!zsh/.config/spaceship-prompt/spaceship.zsh

!fish/.config/fish/config.fish
!fish/.config/fish/functions/*.fish
Expand Down
6 changes: 3 additions & 3 deletions terminal/bin/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ if [ -z $(which duf) ]; then
brew install duf
fi

if [ -z $(which exa) ]; then
echo "----- install exa -----"
brew install exa
if [ -z $(which eza) ]; then
echo "----- install eza -----"
brew install eza
fi

if [ -z $(which fd) ]; then
Expand Down
10 changes: 10 additions & 0 deletions zsh/.config/spaceship-prompt/spaceship.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Display time
SPACESHIP_TIME_SHOW=true

# Display username always
SPACESHIP_USER_SHOW=always

# Do not truncate path in repos
SPACESHIP_DIR_TRUNC_REPO=false

SPACESHIP_CHAR_SYMBOL="%(?.>><(( o>.>><(( x>) "
5 changes: 2 additions & 3 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,10 @@ if ! zplug check; then zplug install ;fi
zplug load

# enhancd
ENHANCD_HOOK_AFTER_CD="exa -aaF"
ENHANCD_HOOK_AFTER_CD="eza -aaF"

# spaceship-prompt
export SPACESHIP_CHAR_SYMBOL="%(?.>><(( o>.>><(( x>) "
export SPACESHIP_DIR_TRUNC_REPO=false
export SPACESHIP_CONFIG="$HOME/.config/spaceship-prompt/spaceship.zsh"

# tmux
source ~/.config/zsh/tmux.zsh
2 changes: 1 addition & 1 deletion zsh/bin/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [ ! -d ~/.config ]; then
mkdir ~/.config
fi

LINK_FILES=(.zshrc .zsh_aliases .config/zsh)
LINK_FILES=(.zshrc .zsh_aliases .config/zsh .config/spaceship-prompt)
for file in ${LINK_FILES[@]}; do \
unlink ~/$file&>/dev/null
ln -sf $(pwd)/zsh/$file ~/$file; \
Expand Down
2 changes: 1 addition & 1 deletion zsh/bin/uninstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ echo "----- change default shell -----"
chsh -s $(which bash)

echo "----- unlink zsh setting files -----"
LINK_FILES=(.zshrc .zsh_aliases .config/zsh)
LINK_FILES=(.zshrc .zsh_aliases .config/zsh .config/spaceship-prompt)
for file in ${LINK_FILES[@]}; do \
unlink ~/$file&>/dev/null; \
done
Expand Down

0 comments on commit a118495

Please sign in to comment.