dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit be8d6827884838359869a647ffe0e4b3f8b0f2d6 (tree)
parent c50208cd2323fd72d04a1502f608e856cb422b27
Author: Motiejus Jakštys <motiejus@uber.com>
Date:   Tue, 16 Mar 2021 22:30:31 +0200

remove unused things

Diffstat:
MREADME.md | 10----------
Dbash/.bashrc_time.sh | 57---------------------------------------------------------
Mbash/.profile_motiejus | 9---------
Mvim/.vim/vimrc | 6+++---
4 files changed, 3 insertions(+), 79 deletions(-)

diff --git a/README.md b/README.md @@ -11,13 +11,3 @@ Dotfiles in $HOME $ git clone --recursive git@github.com:motiejus/dotfiles.git .dotfiles $ cd .dotfiles $ stow bash ctags tmux vim - -Dotfiles in / -------------- - -See `root/`. - -Secrets & non-symlinks ----------------------- - -See `nonlinks`. diff --git a/bash/.bashrc_time.sh b/bash/.bashrc_time.sh @@ -1,57 +0,0 @@ -# from https://redandblack.io/blog/2020/bash-prompt-with-updating-time/ -DIRECTORY="\w" -DOUBLE_SPACE=" " -NEWLINE="\n" -NO_COLOUR="\e[00m" -PRINTING_OFF="\[" -PRINTING_ON="\]" -PROMPT_COLOUR="\e[0;33m" -PS1_PROMPT="\$" -PS2_PROMPT=">" -RESTORE_CURSOR_POSITION="\e[u" -SAVE_CURSOR_POSITION="\e[s" -SINGLE_SPACE=" " -TIMESTAMP="\A" -TIMESTAMP_PLACEHOLDER="--:--" - -move_cursor_to_start_of_ps1() { - command_rows=$(history 1 | wc -l) - if [ "$command_rows" -gt 1 ]; then - let vertical_movement=$command_rows+1 - else - command=$(history 1 | sed 's/^\s*[0-9]*\s*//') - command_length=${#command} - ps1_prompt_length=${#PS1_PROMPT} - let total_length=$command_length+$ps1_prompt_length - let lines=$total_length/${COLUMNS}+1 - let vertical_movement=$lines+1 - fi - tput cuu $vertical_movement -} - -PS0_ELEMENTS=( - "$SAVE_CURSOR_POSITION" "\$(move_cursor_to_start_of_ps1)" - "$PROMPT_COLOUR" "$TIMESTAMP" "$NO_COLOUR" "$RESTORE_CURSOR_POSITION" -) -PS0=$(IFS=; echo "${PS0_ELEMENTS[*]}") - -PS1_ELEMENTS=( - # Empty line after last command. - #"$NEWLINE" - # First line of prompt. - "$PRINTING_OFF" "$PROMPT_COLOUR" "$PRINTING_ON" - "$TIMESTAMP_PLACEHOLDER" "$DOUBLE_SPACE" "$DIRECTORY" "$PRINTING_OFF" - "$NO_COLOUR" "$PRINTING_ON" "$NEWLINE" - # Second line of prompt. - "$PRINTING_OFF" "$PROMPT_COLOUR" "$PRINTING_ON" "$PS1_PROMPT" - "$SINGLE_SPACE" "$PRINTING_OFF" "$NO_COLOUR" "$PRINTING_ON" -) -PS1=$(IFS=; echo "${PS1_ELEMENTS[*]}") - -PS2_ELEMENTS=( - "$PRINTING_OFF" "$PROMPT_COLOUR" "$PRINTING_ON" "$PS2_PROMPT" - "$SINGLE_SPACE" "$PRINTING_OFF" "$NO_COLOUR" "$PRINTING_ON" -) -PS2=$(IFS=; echo "${PS2_ELEMENTS[*]}") - -shopt -s histverify diff --git a/bash/.profile_motiejus b/bash/.profile_motiejus @@ -29,14 +29,6 @@ for path in \ fi done -toolshed() { - local ti="-i" - if [[ -t 0 ]]; then - local ti="-ti" - fi - docker run --init --name toolshed -v `pwd`:/x -w /x "$ti" --rm motiejus/toolshed "$@" -} - nman() { nvim +"Man $*" +on } @@ -50,7 +42,6 @@ export UBER_LDAP_UID=motiejus alias gp='git remote | parallel --verbose git push' alias gf='git remote | parallel --verbose git fetch' alias kal='khal calendar' -alias m=neomutt export UBER_HOME=/home/motiejus/Uber export UBER_OWNER=motiejus@uber.com diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc @@ -10,8 +10,8 @@ let g:gutentags_generate_on_new = 0 let g:gutentags_cache_dir = '~/.vim/ctags' let b:gutentags_file_list_command = 'git ls-files' -call matchadd('ColorColumn', '\%80v', 100) -" thanks to drew de vault +call matchadd('ColorColumn', '\%81v', 100) +" thanks to drew de vault's vimrc, except swearing set mouse=a set backupdir=~/.cache directory=~/.cache nnoremap Q <Nop> @@ -62,7 +62,7 @@ au FileType go let g:go_template_autocreate = 0 au FileType go let g:go_fmt_command = "goimports" let g:go_fmt_command = "goimports" let g:go_fmt_options = { - \ 'goimports': '-local selector,inventory,gopkg.in,google.golang.org,code.uber.internal,thriftrw,thrift,gogoproto,go.uber.org,golang.org,github.com,mock', + \ 'goimports': '-local selector,inventory,gopkg.in,google.golang.org,code.uber.internal,thriftrw,thrift,gogoproto,go.uber.org,golang.org,github.com,mock,git.sr.ht', \ } let $USEGO111MODULE="off"