diff --git a/shell/alias.sh b/shell/alias.sh index 1a115a8..11c27cb 100644 --- a/shell/alias.sh +++ b/shell/alias.sh @@ -1,2 +1,4 @@ alias l="ls -lah" alias lg="LANG=en_US-UTF-8 lazygit" +alias v="vim" +alias n="nvim" diff --git a/shell/bash/bashrc b/shell/bash/bashrc index 7a57814..9138596 100644 --- a/shell/bash/bashrc +++ b/shell/bash/bashrc @@ -1,6 +1,7 @@ source ~/.dotfiles/git/git-prompt.sh source ~/.dotfiles/shell/alias.sh PROMPT_COMMAND='PS1_CMD1=$(__git_ps1 " [%s]")'; PS1='\[\e[38;5;117m\]\u\[\e[0m\] \w${PS1_CMD1}\$ ' +PATH="$PATH:~/go/bin" # # tmux history preservation diff --git a/vim/ftplugin/go.vim b/vim/ftplugin/go.vim index c6de6df..26b4666 100644 --- a/vim/ftplugin/go.vim +++ b/vim/ftplugin/go.vim @@ -1,2 +1,2 @@ -let g:go_imports_autosave = 0 - +let g:go_imports_autosave = 1 +" au BufWritePre,FileWritePre *.go :GoFmt