Skip to content

Commit

Permalink
add lsd and use it instead of colorls
Browse files Browse the repository at this point in the history
  • Loading branch information
victory-sokolov committed Dec 30, 2023
1 parent 042fcf6 commit 51d6b78
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ init: symlinks ## Symlink files

install:
set -e
clitools docker postgresql nginx node php python ruby vscode zsh init
clitools docker postgresql nginx node php python vscode zsh init

macinstall: ## macOS setup
# Check for Homebrew and install if we don't have it
Expand Down Expand Up @@ -158,6 +158,7 @@ clitools: ## Install cli tools
sshpass \
imagemagick \
jq \
lsd \
libtool \
libbz2-dev \
libssl-dev \
Expand Down
2 changes: 1 addition & 1 deletion macos/Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ brew 'wget' # Download tool
brew 'ripgrep' # Searching within files (better grep)
brew 'tmux' # Terminal multiplexer
brew 'neofetch' # Show system data and ditstro info
brew 'eza' # Listing files with info (better ls)
brew 'lsd' # Listing files with info (better ls)
brew 'openssl' # Cryptography and SSL/TLS Toolkit
brew 'fzf' # Fuzzy file finder and filtering
brew 'shellcheck' # Shell script linter
Expand Down
10 changes: 6 additions & 4 deletions zsh/.aliases
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ alias vimu="nvim --headless \"+Lazy! sync\" +qa"
alias hy="fc -ln 0 | awk '!a[\$0]++' | fzf --tac | xclip -selection clipboard"

if has colorls; then
alias ls="colorls --group-directories-first"
alias ll="colorls -lA --sd --group-directories-first"
alias la="colorls -a --group-directories-first"
alias ls="lsd -F --group-directories-first"
alias l="ls -l"
alias la="ls -a"
alias lla="ls -la"
alias lt="ls --tree"
fi

if has htop; then
Expand Down Expand Up @@ -101,6 +103,7 @@ alias valias="vim ~/dotfiles/zsh/.aliases"
alias reload="source ~/.zshrc"
alias v="vim"
alias vo="fd --type f --hidden --exclude .git | fzf-tmux -p --reverse | xargs nvim"
alias hosts="sudo vim /etc/hosts" # vhosts

if has nvim; then
alias vim="nvim"
Expand All @@ -112,7 +115,6 @@ alias ioa="npx @squoosh/cli --avif auto" # <file-name>
alias iop="npx @squoosh/cli --oxipng auto " # +file-name

# PHP
alias hosts="sudo vim /etc/hosts" # vhosts
alias php-server="php -S localhost:8000" # built in php server
# Switch PHP version
alias php74="sudo update-alternatives --set php /usr/bin/php7.4"
Expand Down

0 comments on commit 51d6b78

Please sign in to comment.