Compare commits

...

2 Commits

Author SHA1 Message Date
LordMathis 6b7228e0bc Use distro specific aliases 2023-02-04 20:58:06 +01:00
LordMathis 40af373639 Remove lazyvim submodule 2023-02-04 20:43:54 +01:00
7 changed files with 13 additions and 9 deletions

View File

@ -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 () {

3
.aliases_arch Normal file
View File

@ -0,0 +1,3 @@
alias cat='bat'
alias update='yay -Syu'

2
.aliases_ubuntu Normal file
View File

@ -0,0 +1,2 @@
alias cat='batcat'
alias update='sudo apt-get update && sudo apt-get upgrade'

@ -1 +0,0 @@
Subproject commit 48f45d4469b54ea87742985130d6c473f44d9330

3
.gitmodules vendored
View File

@ -13,6 +13,3 @@
[submodule ".zsh/zsh-history-substring-search"]
path = .zsh/zsh-history-substring-search
url = git@github.com:zsh-users/zsh-history-substring-search
[submodule ".config/nvim"]
path = .config/nvim
url = git@github.com:LazyVim/LazyVim.git

View File

@ -1,2 +0,0 @@
set selectmode=cmd
set mouse-=a

8
.zshrc
View File

@ -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