-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ refactor: reorganize shell aliases into a common file for better m…
…aintainability Move shared shell aliases from `.aliases` and `.aliases.fish` into a new `.aliases.common` file. Update both `.aliases` and `.aliases.fish` to source this common file. Adjust `install.conf.yaml` to include the new `.aliases.common` file in the installation process. This change reduces redundancy and makes it easier to manage and update aliases across different shell configurations. It also ensures consistency between shell environments.
- Loading branch information
1 parent
6319653
commit e0911ab
Showing
4 changed files
with
71 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
## ls aliases | ||
alias la="ls -AlH" # Show hidden files, detailed listing | ||
alias ll="ls -lH" # Detailed listing | ||
alias lt="ls --tree" # Display directory as a tree | ||
alias ld="ls -ld */" # List only directories | ||
|
||
# zoxide aliases | ||
alias zi="z -i" # Interactive mode for zoxide | ||
alias zb="z -b" # Jump to the best match | ||
|
||
# bat aliases | ||
alias batn="bat --style=numbers" # Bat with line numbers | ||
alias batc="bat --style=changes" # Bat with Git diff highlights | ||
|
||
# lazygit aliases | ||
alias lg="lazygit" | ||
|
||
# Directory navigation aliases | ||
alias ..="cd .." | ||
alias ...="cd ../.." | ||
alias ....="cd ../../../" | ||
|
||
# Editor aliases | ||
alias vim="nvim" | ||
alias v="nvim" | ||
alias edit="nvim" | ||
alias e="nvim" | ||
|
||
# Git aliases | ||
alias gs="git status" | ||
|
||
alias ga="git add" | ||
alias gA="git add -A" | ||
|
||
alias gr="git restore" | ||
alias grs="git restore --staged" | ||
|
||
alias gc="git commit -s" | ||
alias gcm="git commit -s -m" | ||
|
||
alias gP="git push" | ||
alias gPf="git push --force-with-lease" | ||
alias gPF="git push --force" | ||
|
||
alias gp="git pull" | ||
alias gpr="git pull --rebase" | ||
|
||
alias gck="git checkout" | ||
alias gsw="git switch" | ||
|
||
alias gl="git log --oneline --graph --decorate" | ||
alias glo="git log --oneline" | ||
|
||
alias gb="git branch" | ||
alias gba="git branch -a" | ||
|
||
alias gcp="git cherry-pick" | ||
alias gcpn="git cherry-pick -n" | ||
|
||
alias gwa="git worktree add" | ||
alias gwr="git worktree remove" | ||
alias gwls="git worktree list" | ||
### End of git aliases | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters