aboutsummaryrefslogtreecommitdiff
path: root/.aliases
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-11-15 08:58:19 +0800
committerGuangxiong Lin <[email protected]>2023-11-15 08:58:19 +0800
commit016c96d8af4c944fb2b9fc0c673f5130472a7977 (patch)
treeb8410f3cea2780043d66a67a8b1e173930488bed /.aliases
parent55c2d8e73db4e9e93cddcb981c15fb8fe9b1dcf4 (diff)
downloaddotfiles-016c96d8af4c944fb2b9fc0c673f5130472a7977.tar.gz
dotfiles-016c96d8af4c944fb2b9fc0c673f5130472a7977.tar.bz2
dotfiles-016c96d8af4c944fb2b9fc0c673f5130472a7977.zip
Update aliases and add fisher
Diffstat (limited to '.aliases')
-rw-r--r--.aliases43
1 files changed, 4 insertions, 39 deletions
diff --git a/.aliases b/.aliases
index 3100f21..40f2084 100644
--- a/.aliases
+++ b/.aliases
@@ -1,5 +1,3 @@
-#!/usr/bin/env bash
-
alias ls='ls --color=auto'
alias ll='ls --color=auto -lh'
alias diff='diff --color=auto'
@@ -17,43 +15,10 @@ command -v jrnl > /dev/null && alias jrnl=' jrnl'
alias gmf='git diff --merge-base'
alias gmfn='git diff --merge-base --name-only'
-if [ -f /usr/bin/pacman ]; then
- alias S='sudo pacman -S'
- alias Si='pacman -Si'
- alias Ss='pacman -Ss'
- alias Syu='sudo pacman -Syu'
-
- alias R='sudo pacman -R'
- alias Rs='sudo pacman -Rs'
- alias Rns='sudo pacman -Rns'
-
- alias Q='pacman -Q'
- alias Qi='pacman -Qi'
- alias Qm='pacman -Qm'
- alias Qs='pacman -Qs'
- alias Qu='pacman -Qu'
-fi
-
-if [ -f /usr/bin/paru ]; then
- alias Sa='paru -Sa'
- alias Sia='paru -Sia'
- alias Ssa='paru -Ssa'
- alias Syua='paru -Syua'
+command -v pacman > /dev/null && source "$HOME/.arch.aliases"
- alias Rsa='paru -Rsa'
- alias Rnsa='paru -Rnsa'
-
- alias Qa='paru -Qa'
- alias Qia='paru -Qia'
- alias Qma='paru -Qma'
- alias Qsa='paru -Qsa'
- alias Qua='paru -Qua'
-fi
-
-if command -v tig &> /dev/null; then
- alias tigs='tig status'
-fi
-
-# git alias
+command -v tig &> /dev/null && alias tigs='tig status'
alias g='git'
+
+# vim: ft=sh