Skip to content

Commit

Permalink
assorted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
3ximus committed Apr 20, 2024
1 parent c71ba0c commit 0bfc4a9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 14 deletions.
12 changes: 5 additions & 7 deletions .bash/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ findremove() { # {{{
[yY]) echo; find . -iname "*$1*" -exec rm -r "{}" \; ;;
*) echo -e "\nNothing deleted." ;;
esac

} # }}}

delete_older_than_xdays() { # {{{
Expand All @@ -91,7 +90,6 @@ delete_older_than_xdays() { # {{{
# Simplify searching for keyword in current dir, and allow to pass more parameters to grep
grephere() { # {{{
grep -e "$1" "${@:2}" -d recurse .

} # }}}

remove-special-chars-from-name() { # {{{
Expand Down Expand Up @@ -185,6 +183,11 @@ lfcd () { # {{{
}
alias lf=lfcd
# }}}
history-clean() {
local pattern="^bb\|^cd\|^ls\|^mv\|^rm\|^ln\|^wc\|^kill\|^vim\|^echo\|^mkdir\|^du\|^df\|^ll\|^diff\|^eval --\|^chmod\|^touch\|^type\|^lf\|^cat\|^gunzip\|^gzip\|^tar\|^un \|^unzip\|^\.\/\|^sudo cp\|^sudo apt list\|^file^\|^less\|^cout\|^cin\|^gd\|^git checkout\|^git diff\|^git show\|^git branch\|^git restore\|^yarn test\|^yarn start\|^dolphin\|^vlc\|^python\|^batcat"
sed "/${pattern}/d" -i ~/.bash_history
sed 's/\s\+$//' -i ~/.bash_history # strip trailing white spaces
}

ssh.localhost.run() { # {{{
local PORT=${1:-8000}
Expand Down Expand Up @@ -331,8 +334,3 @@ weather2() {
generate_qr() { # {{{
echo "$1" | curl -F-=\<- qrenco.de
} # }}}

# Crypto Currencies
crypto() { # {{{
curl rate.sx/$1
} #}}}
3 changes: 1 addition & 2 deletions .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ bind-key u command-prompt -p 'Save history to filename:' -I '~/tmux.history' 'ca
# COLORS AND FORMATS #
###########################
# IS THIS NEEDED ?
# set -g status-style fg=colour4,bg=default # transparent background
set -g status-style fg=colour0,bg=default # transparent background
# active window title colors
# set-window-option -g window-status-current-style fg=colour4,bg=default
Expand Down
3 changes: 1 addition & 2 deletions .vim/autoload/plug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ endfunction

function! plug#begin(...)
if a:0 > 0
let s:plug_home_org = a:1
let home = s:path(s:plug_fnamemodify(s:plug_expand(a:1), ':p'))
elseif exists('g:plug_home')
let home = s:path(g:plug_home)
Expand Down Expand Up @@ -2436,7 +2435,7 @@ function! s:clean(force)
let errs = {}
let [cnt, total] = [0, len(g:plugs)]
for [name, spec] in items(g:plugs)
if !s:is_managed(name)
if !s:is_managed(name) || get(spec, 'frozen', 0)
call add(dirs, spec.dir)
else
let [err, clean] = s:git_validate(spec, 1)
Expand Down
3 changes: 1 addition & 2 deletions .vim/coc-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,5 @@
},
"svelte.enable-ts-plugin": true,
"angular.enable-strict-mode-prompt": false,
"snippets.ultisnips.pythonPrompt": false,
"typescript.inlayHints.parameterNames.enabled": "literals",
"snippets.ultisnips.pythonPrompt": false
}
2 changes: 1 addition & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Plug '3ximus/gruvbox'

" BASE
Plug '3ximus/vim-airline' " my fork switches position of the tabs and splits on tabline
Plug 'scrooloose/nerdtree', { 'on':['NERDTreeToggle', 'NERDTreeFind'] }
Plug 'scrooloose/nerdtree', { 'on': ['NERDTreeToggle', 'NERDTreeFind'] }
Plug '3ximus/fzf' " use my fork to allow passing g:fzf_no_term
Plug 'junegunn/fzf.vim'
Plug 'sjl/gundo.vim', { 'on': 'GundoToggle' }
Expand Down

0 comments on commit 0bfc4a9

Please sign in to comment.