diff --git a/git/.gitconfig b/git/.gitconfig index ad8417a..ecf5f87 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -1,2 +1,4 @@ [init] defaultBranch = main +[user] + name = Tri Vo Khac diff --git a/micro/.config/micro/backups/%Users%trivk%.config%zsh%.zshrc b/micro/.config/micro/backups/%Users%trivk%.config%zsh%.zshrc deleted file mode 100644 index fa9683f..0000000 --- a/micro/.config/micro/backups/%Users%trivk%.config%zsh%.zshrc +++ /dev/null @@ -1,86 +0,0 @@ -#!/bin/sh -export ZDOTDIR=$HOME/.config/zsh -# HISTFILE=~/.zsh_history -setopt appendhistory - -# some useful options (man zshoptions) -setopt autocd extendedglob nomatch menucomplete -setopt interactive_comments -stty stop undef # Disable ctrl-s to freeze terminal. -zle_highlight=('paste:none') - -# beeping is annoying -unsetopt BEEP - - -# completions -autoload -Uz compinit -zstyle ':completion:*' menu select -# zstyle ':completion::complete:lsof:*' menu yes select -zmodload zsh/complist -# compinit -_comp_options+=(globdots) # Include hidden files. - -autoload -U up-line-or-beginning-search -autoload -U down-line-or-beginning-search -zle -N up-line-or-beginning-search -zle -N down-line-or-beginning-search - -# Colors -autoload -Uz colors && colors - -# Useful Functions -source "$ZDOTDIR/zsh-functions" - -# Normal files to source -zsh_add_file "zsh-exports" -zsh_add_file "zsh-vim-mode" -zsh_add_file "zsh-aliases" -zsh_add_file "zsh-prompt" - -# Plugins -zsh_add_plugin "zsh-users/zsh-autosuggestions" -zsh_add_plugin "zsh-users/zsh-completions" -zsh_add_plugin "zdharma-continuum/fast-syntax-highlighting" -zsh_add_plugin "hlissner/zsh-autopair" -# zsh_add_completion "esc/conda-zsh-completion" false -# For more plugins: https://github.com/unixorn/awesome-zsh-plugins -# More completions https://github.com/zsh-users/zsh-completions - -# Key-bindings -bindkey -s '^o' 'ranger^M' -bindkey -s '^f' 'zi^M' -bindkey -s '^s' 'ncdu^M' -# bindkey -s '^n' 'nvim $(fzf)^M' -# bindkey -s '^v' 'nvim\n' -bindkey -s '^z' 'zi^M' -bindkey '^[[P' delete-char -bindkey "^p" up-line-or-beginning-search # Up -bindkey "^n" down-line-or-beginning-search # Down -bindkey "^k" up-line-or-beginning-search # Up -bindkey "^j" down-line-or-beginning-search # Down -bindkey -r "^u" -bindkey -r "^d" - -# FZF -# TODO update for mac -[ -f /usr/share/fzf/completion.zsh ] && source /usr/share/fzf/completion.zsh -[ -f /usr/share/fzf/key-bindings.zsh ] && source /usr/share/fzf/key-bindings.zsh -[ -f /usr/share/doc/fzf/examples/completion.zsh ] && source /usr/share/doc/fzf/examples/completion.zsh -[ -f /usr/share/doc/fzf/examples/key-bindings.zsh ] && source /usr/share/doc/fzf/examples/key-bindings.zsh -[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh -[ -f $ZDOTDIR/completion/_fnm ] && fpath+="$ZDOTDIR/completion/" -# export FZF_DEFAULT_COMMAND='rg --hidden -l ""' -compinit - -# Edit line in vim with ctrl-e: -autoload edit-command-line; zle -N edit-command-line -# bindkey '^e' edit-command-line - -# Environment variables set everywhere -export EDITOR="nvim" -export TERMINAL="alacritty" -export BROWSER="brave" - -# For QT Themes -export QT_QPA_PLATFORMTHEME=qt5ct diff --git a/zsh/.config/zsh/.zsh_history b/zsh/.config/zsh/.zsh_history index da73f9f..0703b3a 100644 --- a/zsh/.config/zsh/.zsh_history +++ b/zsh/.config/zsh/.zsh_history @@ -14,3 +14,37 @@ find "$ZDOTDIR/plugins" -type d -exec test -e '{}/.git' ';' -print0 | xargs -I { find "$ZDOTDIR/plugins" -type d -exec test -e '{}/.git' ';' -print0 | xargs -I {} -0 find "$ZDOTDIR/plugins" -type d -exec test -e '{}/.git' ';' -print0 | xargs -I {} -0 git -C {} status -q find "$ZDOTDIR/plugins" -type d -exec test -e '{}/.git' ';' -print0 | xargs -I {} -0 git -C {} status +ls +echo $ZDOTDIR/.zshrc +micro $ZDOTDIR/.zshrc +ls +pwd +cd +git clone git@github.com:vokhactri/vokhactri.git ~ +git clone --depth 1 git@github.com:vokhactri/vokhactri.git ~ +git clone --depth 1 git@github.com:vokhactri/vokhactri.git +ls +vokhactri +ls +.. +rm -rf vokhactri +.dotfiles +gaa +git add . +git commit -m "initial commit" +git remote add origin git@github.com:vokhactri/.dotfiles.git +git push -u origin main +topgrade +topgrade +topgrade +defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false +micro $ZDOTDIR/.zshrc +echo $ZDOTDIR/ +micro $ZDOTDIR/.zshrc +brew reinstall nvm +micro $ZDOTDIR/zsh-exports +nvm install --lts +node -v +compdef +micro $ZDOTDIR/zsh-exports +node -v diff --git a/zsh/.config/zsh/zsh-exports b/zsh/.config/zsh/zsh-exports index d9205f0..4ff3d3b 100644 --- a/zsh/.config/zsh/zsh-exports +++ b/zsh/.config/zsh/zsh-exports @@ -3,31 +3,10 @@ HISTSIZE=1000000 SAVEHIST=1000000 export PATH="$HOME/.local/bin":$PATH -export MANPAGER='nvim +Man!' export MANWIDTH=999 -# export PATH=$HOME/.cargo/bin:$PATH -# export PATH=$HOME/.local/share/go/bin:$PATH -# export GOPATH=$HOME/.local/share/go -# export PATH=$HOME/.fnm:$PATH -# export PATH="$HOME/.local/share/neovim/bin":$PATH -#export PATH="$PATH:./node_modules/.bin" -# eval "$(fnm env)" + +export NVM_DIR="$HOME/.nvm" +[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm +# [ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion + eval "$(zoxide init zsh)" -# eval "`pip completion --zsh`" - - -# >>> conda initialize >>> -# !! Contents within this block are managed by 'conda init' !! -# __conda_setup="$("$HOME/.miniconda/bin/conda" 'shell.zsh' 'hook' 2> /dev/null)" -# if [ $? -eq 0 ]; then -# eval "$__conda_setup" -# else -# if [ -f "$HOME/.miniconda/etc/profile.d/conda.sh" ]; then -# . "$HOME/.miniconda/etc/profile.d/conda.sh" -# else -# export PATH="$HOME/.miniconda/bin:$PATH" -# fi -# fi -# unset __conda_setup -# <<< conda initialize <<< - diff --git a/zsh/.config/zsh/zsh-functions b/zsh/.config/zsh/zsh-functions index b4f9256..ede0039 100644 --- a/zsh/.config/zsh/zsh-functions +++ b/zsh/.config/zsh/zsh-functions @@ -29,9 +29,3 @@ function zsh_add_completion() { completion_file="$(basename "${completion_file_path}")" if [ "$2" = true ] && compinit "${completion_file:1}" } - -function mach_java_mode() { - #THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! - export SDKMAN_DIR="$HOME/.sdkman" - [[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh" -}