Compare commits

...

10 Commits

Author SHA1 Message Date
LordMathis cfa8d2dad8 Switch gitmodules to https 2023-02-08 21:26:51 +01:00
LordMathis 3ac73d2f43 Create zsh cache dir 2023-02-06 22:14:02 +01:00
LordMathis 7afca9cf36 Add helm completions 2023-02-06 21:34:57 +01:00
LordMathis 80ab09569f Update submodules 2023-02-06 21:33:01 +01:00
LordMathis 9f334fa2df Update submodules 2023-02-04 21:26:12 +01:00
LordMathis 22eeb9574a Fix aliases path 2023-02-04 21:25:59 +01:00
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
Matus Namesny fed924fc12 Update submodules 2023-01-28 17:07:18 +00:00
Matus Namesny 9e3585905c Fix submodules 2023-01-27 19:05:31 +00:00
11 changed files with 27 additions and 17 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 01a27d15c4c66f0d8626f06d295a05a9a86a1d2f

13
.gitmodules vendored
View File

@ -1,18 +1,15 @@
[submodule ".zsh/ohmyzsh"]
path = .zsh/ohmyzsh
url = git@github.com:ohmyzsh/ohmyzsh.git
url = https://github.com/ohmyzsh/ohmyzsh.git
[submodule ".zsh/zsh-syntax-highlighting"]
path = .zsh/zsh-syntax-highlighting
url = git@github.com:zsh-users/zsh-syntax-highlighting.git
url = https://github.com/zsh-users/zsh-syntax-highlighting.git
[submodule ".zsh/zsh-autosuggestions"]
path = .zsh/zsh-autosuggestions
url = git@github.com:zsh-users/zsh-autosuggestions.git
url = https://github.com/zsh-users/zsh-autosuggestions.git
[submodule ".zsh/zsh-completions"]
path = .zsh/zsh-completions
url = git@github.com:zsh-users/zsh-completions.git
url = https://github.com/zsh-users/zsh-completions.git
[submodule ".zsh/zsh-history-substring-search"]
path = .zsh/zsh-history-substring-search
url = git@github.com:zsh-users/zsh-history-substring-search.git
[submodule ".config/nvim"]
path = .config/nvim
url = git@github.com:LazyVim/LazyVim.git
url = https://github.com/zsh-users/zsh-history-substring-search

View File

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

@ -1 +1 @@
Subproject commit b0bffcaf865434711d98b63eddd0aa52be0fbeb1
Subproject commit 3fd63fdf01344bb5f5f13a9c33eb0b7a72fe4771

@ -1 +1 @@
Subproject commit 54156de9cbcc807e9cdb9a7c4e6c09d4bab14536
Subproject commit 828fe2bd3c67123263fc8a8cadebae92e10a2224

@ -0,0 +1 @@
Subproject commit 400e58a87f72ecec14f783fbd29bc6be4ff1641c

@ -1 +1 @@
Subproject commit b2c910a85ed84cb7e5108e7cb3406a2e825a858f
Subproject commit 754cefe0181a7acd42fdcb357a67d0217291ac47

13
.zshrc
View File

@ -14,6 +14,10 @@ export HISTSIZE=15000 # keep 15,000 lines in memory
export SAVEHIST=10000 # but save only 10,000 of them
export HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=true
# ohmyzsh cache dir
export ZSH_CACHE_DIR=$HOME/.zsh/cache
mkdir -p "$ZSH_CACHE_DIR/completions"
# Editor
export EDITOR=nvim
export GIT_EDITOR=nvim
@ -23,6 +27,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 $HOME/.aliases_arch
else
source $HOME/.aliases_ubuntu
fi
# Conda
__conda_setup="$('/home/matus/bin/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
@ -72,6 +84,7 @@ source ~/.zsh/ohmyzsh/plugins/docker/_docker
source ~/.zsh/ohmyzsh/plugins/docker-compose/docker-compose.plugin.zsh
source ~/.zsh/ohmyzsh/plugins/git/git.plugin.zsh
source ~/.zsh/ohmyzsh/plugins/golang/golang.plugin.zsh
source ~/.zsh/ohmyzsh/plugins/helm/helm.plugin.zsh
source ~/.zsh/ohmyzsh/plugins/jsontools/jsontools.plugin.zsh
source ~/.zsh/ohmyzsh/plugins/kubectl/kubectl.plugin.zsh
source ~/.zsh/ohmyzsh/plugins/sudo/sudo.plugin.zsh