Compare commits

...

40 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
Matus Namesny d310513ed2 Update submodules 2023-01-27 18:59:56 +00:00
Matus Namesny 634232ed31 Merge git.namesny.com:Mathis/dotfiles into desktop/common 2023-01-27 18:48:14 +00:00
Mathis a2cf22d8b3 Use ssh for lazyvim submodule 2023-01-27 18:29:46 +00:00
Mathis e1b2481e02 Fix lazyvim submodule 2023-01-27 18:28:19 +00:00
LordMathis d38bf5efb0 Add editor and git editor env variables 2023-01-26 21:12:51 +01:00
LordMathis c1b6d9b449 Update aliases 2023-01-26 21:12:24 +01:00
LordMathis 13f5504315 Add lazyvim 2023-01-26 21:10:59 +01:00
Mathis 390f5a92c5 Fix bat alias 2022-02-07 11:01:25 +01:00
Mathis 6ebfab0d8c Add kubectl plugin 2022-02-07 11:00:50 +01:00
Mathis dd4c17edf9 Unique zsh history 2022-02-07 10:56:12 +01:00
Matus Namesny 179a26cb22 Move bindkeys 2022-01-18 10:14:01 +01:00
Matus Namesny b2f4efe7cc Change bindkeys 2022-01-13 13:50:17 +01:00
Matus Namesny 2208396599 Move bindkeys up 2022-01-13 13:41:50 +01:00
Matus Namesny 79836a8756 Add history substring search 2022-01-13 12:54:11 +01:00
Matus Namesny e5c66ea869 Remove dist upgrade from alias 2022-01-07 19:10:39 +01:00
Matus Namesny a910b5bc3d Plugin static loading 2022-01-07 17:43:30 +01:00
Mathis 2ed347eae0 Fix zsh history 2021-10-07 16:15:45 +02:00
Mathis 3e2cfb1eb3 Update zshrc 2021-10-06 14:59:29 +02:00
Mathis 21ec9f2715 Switch from antigen to zinit 2021-10-05 13:23:27 +02:00
LordMathis 7cf8537c07 Cleanup 2021-07-11 16:56:37 +02:00
Mathis 3fa61caa71 Add gnome shell sync file 2021-07-11 16:10:13 +02:00
Mathis 92e66e0ebe Update zshrc 2021-07-11 16:06:47 +02:00
Mathis 486b197f6d Update aliases 2020-09-08 16:08:58 +02:00
Mathis 404caa0668 Add kubectl plugin 2020-07-23 13:32:57 +02:00
Mathis 4ebff671a2 Add open function 2020-03-23 12:00:20 +01:00
Mathis d40acd2516 Update dotfiles 2020-03-20 12:43:45 +01:00
Mathis 30d6d36e9c Add ideavimrc 2020-01-22 12:15:51 +01:00
Mathis c4022d84f9 Change monitor setup script 2020-01-21 10:39:32 +01:00
Mathis 80e20aa00f Remove unnecessary files 2020-01-21 10:39:12 +01:00
Mathis abf0e0bb5c Add conda init to zshrc 2020-01-21 10:29:28 +01:00
11 changed files with 147 additions and 19 deletions

16
.aliases Normal file
View File

@ -0,0 +1,16 @@
alias mkdir='mkdir -p'
alias vim='nvim'
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
alias doco='docker-compose'
alias dops='docker ps -a'
alias doe='docker exec'
alias dol='docker logs -f'
alias sudo='sudo '
open () {
xdg-open "$@" &>/dev/null
}

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'

15
.gitmodules vendored Normal file
View File

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

1
.zsh/ohmyzsh Submodule

@ -0,0 +1 @@
Subproject commit 3fd63fdf01344bb5f5f13a9c33eb0b7a72fe4771

@ -0,0 +1 @@
Subproject commit a411ef3e0992d4839f0732ebeb9823024afaaaa8

1
.zsh/zsh-completions Submodule

@ -0,0 +1 @@
Subproject commit 828fe2bd3c67123263fc8a8cadebae92e10a2224

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

@ -0,0 +1 @@
Subproject commit 754cefe0181a7acd42fdcb357a67d0217291ac47

106
.zshrc Normal file
View File

@ -0,0 +1,106 @@
source $HOME/.aliases
# Set $PATH
export PATH=$HOME/bin:$PATH
# Set Golang
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/Projects/golang
export PATH=$PATH:$GOPATH/bin
# History
export HISTFILE=$HOME/.zsh_history
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
# VTE
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
eval "$__conda_setup"
else
if [ -f "/home/matus/bin/anaconda3/etc/profile.d/conda.sh" ]; then
. "/home/matus/bin/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/home/matus/bin/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# Node Version Manager
lazynvm() {
unset -f nvm node npm
export NVM_DIR=~/.nvm
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
}
nvm() {
lazynvm
nvm $@
}
node() {
lazynvm
node $@
}
npm() {
lazynvm
npm $@
}
# Compinit
autoload -Uz compinit
compinit
# ZSH Plugins
## Oh My Zsh
source ~/.zsh/ohmyzsh/plugins/pip/pip.plugin.zsh
source ~/.zsh/ohmyzsh/plugins/command-not-found/command-not-found.plugin.zsh
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
### Prompt Theme
source ~/.zsh/ohmyzsh/themes/gentoo.zsh-theme
## zsh-users
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/zsh-completions/zsh-completions.plugin.zsh
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.zsh/zsh-history-substring-search/zsh-history-substring-search.zsh
# Set Prompt
setopt promptsubst
# Bindkeys
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down

View File

@ -1,19 +0,0 @@
# Dotfiles
My dotfiles. If you want to use them fork or clone the repo. Each branch has specific dotfiles for one of my machines
## Requirements
* [git](https://git-scm.com/), [zsh](http://www.zsh.org/) and [bat](https://github.com/sharkdp/bat)
## Usage
* `echo ".dotfiles" >> .gitignore`
* `git clone --bare git@git.namesny.com:Mathis/dotfiles.git $HOME/.dotfiles`
* `alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'`
* `config submodule init`
* `config submodule update`
* `config checkout`
* `source .zshrc`
## [Full Guide](https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/)