Skip to content

Commit

Permalink
Merge pull request #304 from izumin5210/izumin5210/eza-and-ls-aliases
Browse files Browse the repository at this point in the history
add eza and add ls aliases
  • Loading branch information
izumin5210 authored Mar 30, 2024
2 parents 68a2cb0 + 2c98824 commit cfbb206
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/.config/zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ zstyle ':completion:*' recent-dirs-insert both
zstyle ':completion:*' cache-path "$XDG_CACHE_HOME"/zsh/zcompcache

# cdしたあとで、自動的に ls する
function chpwd() { ls }
function chpwd() { eza --icons -a --git-ignore }

# ---- Directory stack ----
setopt auto_cd # ディレクトリ名を入力したら自動でcd
Expand Down
7 changes: 7 additions & 0 deletions config/.config/zsh/legacy/aliases.zsh
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
alias ls='ls -G'

alias l='exa --icons -a --git --git-ignore'
alias ll='l -l'
alias lll='exa --icons -al --git' # ll without --git-ignore
alias lt='l -T -L 3'
alias llt='ll -T -L 3'

alias vim='nvim'
if type ripgrep > /dev/null 2>&1; then
alias rg='ripgrep'
Expand Down
1 change: 1 addition & 0 deletions home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
pkgs.bat
pkgs.ctop
pkgs.direnv
pkgs.eza
pkgs.fzf
pkgs.gawk
pkgs.ghq
Expand Down

0 comments on commit cfbb206

Please sign in to comment.