Use distro specific aliases
This commit is contained in:
parent
40af373639
commit
6b7228e0bc
3
.aliases
3
.aliases
|
@ -1,6 +1,5 @@
|
|||
alias mkdir='mkdir -p'
|
||||
|
||||
alias cat='bat'
|
||||
alias vim='nvim'
|
||||
|
||||
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
||||
|
@ -10,8 +9,6 @@ alias dops='docker ps -a'
|
|||
alias doe='docker exec'
|
||||
alias dol='docker logs -f'
|
||||
|
||||
alias update='sudo apt-get update && sudo apt-get upgrade'
|
||||
|
||||
alias sudo='sudo '
|
||||
|
||||
open () {
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
alias cat='bat'
|
||||
alias update='yay -Syu'
|
|
@ -0,0 +1,2 @@
|
|||
alias cat='batcat'
|
||||
alias update='sudo apt-get update && sudo apt-get upgrade'
|
|
@ -1,2 +0,0 @@
|
|||
set selectmode=cmd
|
||||
set mouse-=a
|
8
.zshrc
8
.zshrc
|
@ -23,6 +23,14 @@ if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
|
|||
source /etc/profile.d/vte.sh
|
||||
fi
|
||||
|
||||
# Distro specific aliases
|
||||
DISTRO=`cat /etc/os-release | grep ^ID= | cut -f2 -d'='`
|
||||
if [ "$DISTRO" = 'arch' ]; then
|
||||
source .aliases_arch
|
||||
else
|
||||
source .aliases_ubuntu
|
||||
fi
|
||||
|
||||
# Conda
|
||||
__conda_setup="$('/home/matus/bin/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
|
||||
if [ $? -eq 0 ]; then
|
||||
|
|
Loading…
Reference in New Issue