Compare commits

..

14 Commits
main ... server

Author SHA1 Message Date
Mathis 160e2dcd53 Update '.zshrc' 2023-02-09 20:11:23 +00:00
LordMathis 7242e16f3c Switch gitmodules to https 2023-02-08 21:29:41 +01:00
LordMathis 135868fef8 Create cache dir 2023-02-06 22:13:37 +01:00
LordMathis b6abc2f53b Update submodules 2023-02-06 21:32:03 +01:00
LordMathis ea9b7ae725 Add helm completions 2023-02-06 21:31:29 +01:00
Mathis 1cb5abf8fe Fix bat alias 2023-02-06 17:31:35 +00:00
LordMathis 1f363ba718 Update server dotfiles 2023-02-04 21:10:40 +01:00
Mathis b6c618a076 Remove github folder 2021-09-16 13:20:03 +02:00
Mathis 156c3225b8 Update .aliases 2020-09-08 16:08:15 +02:00
Mathis 0063e538ae Update .profile 2020-07-23 13:38:37 +02:00
LordMathis 632d3a4d48 Remove desktop configs 2020-01-07 14:19:58 +01:00
LordMathis 6728f787cc Remove unnecessary files 2020-01-07 14:16:14 +01:00
LordMathis 05c69476a3 Update aliases 2020-01-07 14:13:16 +01:00
LordMathis fbdff51899 Update vimrc 2020-01-07 14:11:38 +01:00
10 changed files with 91 additions and 38 deletions

13
.aliases Normal file
View File

@ -0,0 +1,13 @@
alias mkdir='mkdir -p'
alias cat='batcat'
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 update='sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade'
alias sudo='sudo '

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

58
.zshrc Normal file
View File

@ -0,0 +1,58 @@
source $HOME/.aliases
# Set $PATH
export PATH=$HOME/bin:$PATH
# 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
# Editor
export EDITOR=nvim
export GIT_EDITOR=nvim
# ohmyzsh cache dir
export ZSH_CACHE_DIR=$HOME/.zsh/cache
mkdir -p "$ZSH_CACHE_DIR/completions"
# k3s kubeconfig
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
# 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
# Kubectl completions fix
source <(kubectl completion zsh)
# Bindkeys
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down

View File

@ -1,23 +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)
## Install
`curl https://git.namesny.com/Mathis/dotfiles/raw/branch/master/install.sh | zsh -s -- <branch name>`
## Manual install
* `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 checkout <branch-name>`
* `config submodule init`
* `config submodule update`
* `source .zshrc`
## [Full Guide](https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/)

View File

@ -1,15 +0,0 @@
#!/usr/bin/zsh
if [ $# -eq 0 ]
then
echo "Git branch name missing"
exit 1;
fi
echo ".dotfiles" >> $HOME/.gitignore
git clone --bare https://git.namesny.com/Mathis/dotfiles.git $HOME/.dotfiles
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
config checkout $1
config submodule init
config submodule update
source .zshrc