From ee09f3b37221a482a0e71125b0610496890b9c59 Mon Sep 17 00:00:00 2001 From: David Chen Date: Tue, 28 Jan 2020 10:28:29 -0800 Subject: [PATCH 1/4] fix ranger openwith%space --- ranger/rc.conf | 2 +- ranger/rifle.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ranger/rc.conf b/ranger/rc.conf index e41969e..7fb7ff1 100755 --- a/ranger/rc.conf +++ b/ranger/rc.conf @@ -303,7 +303,7 @@ map ; console map : console map V console shell nvim%space map T console shell touch%space -map r chain draw_possible_programs; console open_with%%space +map r chain draw_possible_programs; console open_with%space map R reload_cwd map F set freeze_files! diff --git a/ranger/rifle.conf b/ranger/rifle.conf index 92127fd..44ec946 100755 --- a/ranger/rifle.conf +++ b/ranger/rifle.conf @@ -55,6 +55,7 @@ # install a rare browser, you probably use it. Firefox/konqueror/w3m on the # other hand are often only installed as fallback browsers. ext html = nvim "$@" +ext org = nvim "$@" #ext x?html?, has surf, X, flag f = surf -- file://"$1" #ext x?html?, has vimprobable, X, flag f = vimprobable -- "$@" #ext x?html?, has vimprobable2, X, flag f = vimprobable2 -- "$@" From 06a0cf82a46ae31951cff75f660ac20d7f10cdea Mon Sep 17 00:00:00 2001 From: David Chen Date: Wed, 29 Jan 2020 22:44:06 -0800 Subject: [PATCH 2/4] pudb --- .gitignore | 3 +++ pudb/pudb.cfg | 20 ++++++++++++++++++++ zsh/zshrc | 2 +- 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 pudb/pudb.cfg diff --git a/.gitignore b/.gitignore index 6410831..d472c12 100755 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,6 @@ !/jesseduffield/ /jesseduffield/lazygit/* !/jesseduffield/lazygit/config.yml +!/pudb/ +/pudb/* +!/pudb/pudb.cfg diff --git a/pudb/pudb.cfg b/pudb/pudb.cfg new file mode 100644 index 0000000..ccc8d69 --- /dev/null +++ b/pudb/pudb.cfg @@ -0,0 +1,20 @@ +[pudb] +breakpoints_weight = 1 +current_stack_frame = top +custom_shell = +custom_stringifier = +custom_theme = +default_variables_access_level = all +display = auto +hide_cmdline_win = False +line_numbers = True +prompt_on_quit = True +seen_welcome = e036 +shell = internal +sidebar_width = 0.5 +stack_weight = 1 +stringifier = str +theme = monokai-256 +variables_weight = 1 +wrap_variables = True + diff --git a/zsh/zshrc b/zsh/zshrc index 955eb81..8af2fc1 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -21,8 +21,8 @@ alias l='ls -la' alias lg='lazygit' alias ms='mailsync' alias mt='neomutt' -alias nv='nvim' alias r='echo $RANGER_LEVEL' +alias pu='python3 -m pudb' alias ra='ranger' # ra() { #if [ -z "$RANGER_LEVEL" ] From 199a63eea1a482514a8ae12f67d4399ad7d71ea1 Mon Sep 17 00:00:00 2001 From: David Chen Date: Sun, 2 Feb 2020 08:47:05 -0800 Subject: [PATCH 3/4] git yolo, update readme --- README.md | 2 ++ zsh/zshrc | 1 + 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 3d9652d..ee0b7ad 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # My config... This config folder includes `i3` and `alacritty` config, however, I'm using [dwm](https://github.com/theniceboy/dwm) and [st](https://github.com/theniceboy/st) now. +BTW, my scripts are in [this repo](https://github.com/theniceboy/scripts). + # Important stuff: ## Ranger use `pip install ueberzug` and `ranger-git` diff --git a/zsh/zshrc b/zsh/zshrc index 8af2fc1..d402be6 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -40,6 +40,7 @@ alias vim='nvim' alias gs='git config credential.helper store' alias bat='sudo tlp bat' alias ac='sudo tlp ac' +alias gy='git-yolo' bindkey -v bindkey -M vicmd "k" vi-insert From a0164e6270f007f80ae2d2898c6c4de43ace865f Mon Sep 17 00:00:00 2001 From: David Chen Date: Mon, 10 Feb 2020 11:16:21 -0800 Subject: [PATCH 4/4] filemode changes --- ranger/colorschemes/__init__.py | 0 ranger/colorschemes/default.py | 0 ranger/colorschemes/jungle.py | 0 ranger/colorschemes/snow.py | 0 ranger/colorschemes/zenburn.py | 0 ranger/commands.py | 0 ranger/rc-sample.conf | 0 ranger/rc.conf | 1 + ranger/rifle.conf | 1 + zsh/zshrc | 5 +++-- 10 files changed, 5 insertions(+), 2 deletions(-) mode change 100755 => 100644 ranger/colorschemes/__init__.py mode change 100755 => 100644 ranger/colorschemes/default.py mode change 100755 => 100644 ranger/colorschemes/jungle.py mode change 100755 => 100644 ranger/colorschemes/snow.py mode change 100755 => 100644 ranger/colorschemes/zenburn.py mode change 100755 => 100644 ranger/commands.py mode change 100755 => 100644 ranger/rc-sample.conf mode change 100755 => 100644 ranger/rc.conf diff --git a/ranger/colorschemes/__init__.py b/ranger/colorschemes/__init__.py old mode 100755 new mode 100644 diff --git a/ranger/colorschemes/default.py b/ranger/colorschemes/default.py old mode 100755 new mode 100644 diff --git a/ranger/colorschemes/jungle.py b/ranger/colorschemes/jungle.py old mode 100755 new mode 100644 diff --git a/ranger/colorschemes/snow.py b/ranger/colorschemes/snow.py old mode 100755 new mode 100644 diff --git a/ranger/colorschemes/zenburn.py b/ranger/colorschemes/zenburn.py old mode 100755 new mode 100644 diff --git a/ranger/commands.py b/ranger/commands.py old mode 100755 new mode 100644 diff --git a/ranger/rc-sample.conf b/ranger/rc-sample.conf old mode 100755 new mode 100644 diff --git a/ranger/rc.conf b/ranger/rc.conf old mode 100755 new mode 100644 index 7fb7ff1..81eacdc --- a/ranger/rc.conf +++ b/ranger/rc.conf @@ -365,6 +365,7 @@ map gfz cd ~/.config/zsh map gfl cd ~/.config/jesseduffield/lazygit/ map gfd cd ~/prog/dwm/ map gfs cd ~/prog/st/ +map gF cd ~/.sconfig map gs cd ~/scripts map ge cd /etc map guu cd /usr diff --git a/ranger/rifle.conf b/ranger/rifle.conf index 44ec946..82e8f4a 100755 --- a/ranger/rifle.conf +++ b/ranger/rifle.conf @@ -56,6 +56,7 @@ # other hand are often only installed as fallback browsers. ext html = nvim "$@" ext org = nvim "$@" +ext dart = nvim "$@" #ext x?html?, has surf, X, flag f = surf -- file://"$1" #ext x?html?, has vimprobable, X, flag f = vimprobable -- "$@" #ext x?html?, has vimprobable2, X, flag f = vimprobable2 -- "$@" diff --git a/zsh/zshrc b/zsh/zshrc index d402be6..1b79bc9 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -2,6 +2,7 @@ export GOPATH=$HOME/go export PATH=$PATH:$HOME/.gem/ruby/2.6.0 export PATH=$PATH:$HOME/go/bin export PATH=$PATH:/home/linuxbrew/.linuxbrew/bin +export PATH=$PATH:/home/david/prog/flutter/bin export TERM=xterm-256color export TERM_ITALICS=true export RANGER_LOAD_DEFAULT_RC="false" @@ -10,11 +11,11 @@ export RANGER_LOAD_DEFAULT_RC="false" #autoload edit-command-line; zle -N edit-command-line #bindkey '^v' edit-command-line -#alias av='source venv/bin/activate.fish' +alias av='source venv/bin/activate' alias c='clear' alias cdiff='colordiff' alias cs='calcurse' -#alias dv='deactivate' +alias dv='deactivate' alias gc='git config credential.helper store' alias ipy='ipython' alias l='ls -la'