From 4fc4d440f5403929716fc005c2a069a820301005 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 31 Oct 2020 18:41:36 +0100 Subject: Moving in progress --- .config/emacs/init.el | 2 +- .config/fish/alias.fish | 3 +- .config/screen/screenrc | 177 ++++++++++++++++++++++++++++++++++++++++++++++++ .profile | 36 ++++++---- .screenrc | 177 ------------------------------------------------ 5 files changed, 203 insertions(+), 192 deletions(-) create mode 100644 .config/screen/screenrc delete mode 100644 .screenrc diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 57d5eac..49c9f30 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -36,7 +36,7 @@ '(jdee-db-spec-breakpoint-face-colors (cons "#1c1f2b" "#676E95")) '(objed-cursor-color "#ff5370") '(package-selected-packages - '(cl-format company-irony neotree irony xr font-utils org-evil evil-vimish-fold crontab-mode vterm symon toc-org evil-org org-bullets yaml-mode twittering-mode helm-slime helm-w3m helm-mu htmlize babel org-pdftools shell-pop which-key golden-ratio dmenu mingus lua-mode dionysos helm-c-yasnippet helm-emms emms font-lock-cl restart-emacs w3m string-utils go-mode major-mode-icons dired-icon mode-icons evil-collection sed-mode zones kaolin-themes gruvbox-theme helm-themes yasnippet-classic-snippets yasnippet-snippets auto-yasnippet php-auto-yasnippets el-autoyas yasnippet cargo evil-ediff windresize helm-make spacemacs-theme centaur-tabs evil-mu4e evil-magit dashboard slime ssh sudo-ext dockerfile-mode docker frame-local ov dash-functional helm-addressbook org-mime flyspell-correct pdf-tools websocket request emojify-logos emojify oauth2 circe mu4e-alert web-mode doom-themes doom-modeline all-the-icons-dired all-the-icons-gnus all-the-icons html5-schema phps-mode org-babel-eval-in-repl rust-mode smart-mode-line-powerline-theme eshell-prompt-extras eshell-fixed-prompt pyenv-mode s realgud-lldb ranger ## color-theme-modern auto-complete-c-headers command-log-mode auto-complete magit smart-tabs-mode airline-themes paredit autopair tabbar-ruler tabbar use-package-el-get color-theme-approximate diminish rainbow-delimiters color-identifiers-mode use-package helm evil-visual-mark-mode)) + '(cl-format company-irony neotree irony xr font-utils org-evil evil-vimish-fold crontab-mode vterm symon toc-org evil-org org-bullets yaml-mode twittering-mode helm-w3m helm-mu htmlize babel org-pdftools shell-pop which-key golden-ratio dmenu mingus lua-mode dionysos helm-c-yasnippet helm-emms emms font-lock-cl restart-emacs w3m string-utils go-mode major-mode-icons dired-icon mode-icons evil-collection sed-mode zones kaolin-themes gruvbox-theme helm-themes yasnippet-classic-snippets yasnippet-snippets auto-yasnippet php-auto-yasnippets el-autoyas yasnippet cargo evil-ediff windresize helm-make spacemacs-theme centaur-tabs evil-mu4e evil-magit dashboard ssh sudo-ext dockerfile-mode docker frame-local ov dash-functional helm-addressbook org-mime flyspell-correct pdf-tools websocket request emojify-logos emojify oauth2 circe mu4e-alert web-mode doom-themes doom-modeline all-the-icons-dired all-the-icons-gnus all-the-icons html5-schema phps-mode org-babel-eval-in-repl rust-mode smart-mode-line-powerline-theme eshell-prompt-extras eshell-fixed-prompt pyenv-mode s realgud-lldb ranger ## color-theme-modern auto-complete-c-headers command-log-mode auto-complete magit smart-tabs-mode airline-themes paredit autopair tabbar-ruler tabbar use-package-el-get color-theme-approximate diminish rainbow-delimiters color-identifiers-mode use-package helm evil-visual-mark-mode)) '(pdf-view-midnight-colors (cons "#EEFFFF" "#292D3E")) '(pos-tip-background-color "#2E2A29") '(pos-tip-foreground-color "#d4d4d6") diff --git a/.config/fish/alias.fish b/.config/fish/alias.fish index 9aad5d9..9e09ee3 100644 --- a/.config/fish/alias.fish +++ b/.config/fish/alias.fish @@ -40,7 +40,7 @@ alias nb='newsboat' alias mutt='neomutt' alias nmt='neomutt' alias sxiv='sxiv -b' -alias infox='pkg info -x' +alias pinfo='pkg info -x' function search make -C /usr/ports search name=$argv | grep 'Path:'; end @@ -51,3 +51,4 @@ alias rsox='sox -t oss default' alias calcurse="calcurse -C $XDG_CONFIG_HOME/calcurse -D $XDG_DATA_HOME/calcurse" alias abook="abook -C $XDG_CONFIG_HOME/abook/abookrc --datafile $XDG_DATA_HOME/abook/addressbook" alias dosbox="dosbox -conf $XDG_CONFIG_HOME/dosbox/dosbox.conf" +alias svn="svn --config-dir "$XDG_CONFIG_HOME"/subversion" diff --git a/.config/screen/screenrc b/.config/screen/screenrc new file mode 100644 index 0000000..5ab5917 --- /dev/null +++ b/.config/screen/screenrc @@ -0,0 +1,177 @@ +#$HOME/.screenrc +################################################################################# +# Usage: +# [kent]@rd1-2:~$ screen -r ==> resumes a detached screen session +# [kent]@rd1-2:~$ screen -x ==> Cool, Attach to a not detached screen session. (Multi display mode) +# detach : Press F10 or "C-a d" +# HELP: "C-a, ?" +# "C-a C-a" : fast switch between 2 screens +################################################################################# + +altscreen on # Refresh the display when exiting programs like vim, nano, irssi and etc. +defutf8 on +defc1 off # treat input chars 128 ~ 159 as control functions +defflow on +vbell_msg "Ding ding!!" +vbell off # i.e. set to audible bell, used to redirect bell to terminal (putty) for "flashing effect" +defencoding utf8 +# cjkwidth on + +# 256 Color Support +termcapinfo xterm "Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm" +#for Mac +termcapinfo xterm-color "Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm" + +term $TERM # depend on $TERM +term xterm-256color # or specified term + +# allow bold colors - necessary for some reason +attrcolor b ".I" +attrcolor i "+b" + +# erase background with current bg color +defbce on + +# some environment setting +autodetach on +startup_message off +shell -$SHELL + +# dynamically udpate shell title, Sometimes it's bothersome...XD +# Need to add this line PROMPT_COMMAND='echo -n -e "\033k\033\134"' to $HOME/.bashrc +# shelltitle '$ |Bash' + +# setup 10,000 lines of available scrollback copy/paste +# NOTE: memory eating monster... +defscrollback 10000 + +# If a window goes unresponsive, don't block the whole session waiting for it. +nonblock on + +# fix scrollback in putty, this is cool! +termcapinfo xterm* ti@:te@ +#termcapinfo xterm|xterms|xs|rxvt ti@:te@ + +# turn-off log +#log off +logfile $HOME/tmp/screen-%Y%m%d-%n.log +#deflog on + +# caption style +#caption always "%{.KW} %-w%{.mW}[%n] %t%{.KW}%+w" +#caption always "%{=u .G} %-w%<%{=ub .y}%n %t%{=u .G}%+w " +#caption always "%{=u kC} %= %-w%L>%{=b G}[:%n %t:]%{-}%52<%+w %L=" +#caption always "%{= KW}%-w%{= ky} [%n] %t %{-}%+w %-= %{= Kk}[%l] %{= Kk}[%Y/%m/%d %c]" +caption always "%{= KW}%-w%{= kc} [%n] %t %{-}%+w %-= %{= Kk}[%H | %l | %m/%d %c]" + +# hardstatus style +hardstatus alwaysignore +#hardstatus alwayslastline "%{= .K} [%l]%<%=%{= .W}@%H %=%{= .y} %Y/%m/%d%{= .m} %C %A" +#hardstatus alwayslastline '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]' +#hardstatus alwayslastline "%{R}[ %{w}%1` %{R}]%=%{M}%e %{G}%H %{Y} %c %{R} %d/%m/%Y %{K} Load: %l %{w}" +#hardstatus alwayslastline "%{= wk} %{by} %H %{wk} | %-Lw%{kw}◣%{= g}%n%f* %t%{wk}◤%{wk}%+Lw%< %= %{kw}◣%{= R} [%m/%d %c] %{-}" + +# Ctrl + left : prev +# Ctrl + right : next +bindkey "^[O5D" prev +bindkey "^[O5C" next +bindkey "^[Od" prev +bindkey "^[Oc" next +bindkey "\033[D" prev +bindkey "\033[C" next +# putty +bindkey "^[[D" prev +bindkey "^[[C" next +# gnome-terminal +bindkey "^[[1;5D" prev +bindkey "^[[1;5C" next + +# Vim HJKL-style +# Alt + H : prev +# Alt + L : next +bindkey "^[H" prev +bindkey "^[L" next + +# /*Need to hack putty*/ +# (Mac - iTerm) just add key mapping! Cool iTerm +# (Win - PuTTY) Resolved by AutoHotkey +#Ctrl + , : prev +#Ctrl + . : next +#bindkey "\274" prev +#bindkey "\276" next + +# (Win - PuTTY) Resolved by AutoHotkey +# /*Need to hack putty*/ +# Ctrl + Tab : prev (Firefox-way) +# Ctrl + Shift + Tab : next (Firefox-way) +#bindkey "^[[27;5;9~" next +#bindkey "^[[27;6;9~" prev + +# Ctrl + t : new screen (Firefox-way), shit conflict with cscope +#bindkey "\024" screen +# Ctrl + w : close screen (Firefox-way), shit conflict with vim - window control +#bindkey "\027" kill + + +# Alt + left/right, will conflict with my vimrc mapping +#bindkey "^[^[OC" next +#bindkey "^[^[OD" prev +#Alt + ,/. +#bindkey ^[, next +#bindkey ^[. prev + +# C-a b : encoding big5 +# C-a u : encoding utf8 +bind b encoding big5 utf8 +bind u encoding utf8 utf8 + +# C-a $num : Switch to window number 0 - 9, or to the blank window. +bindkey "^[[A" number 1 + +# F10 : detach +bindkey -k k; detach + +# set the title for the default shell or specified program. +# screen -t gotop 1 gotop +# screen -t lf 2 lf +# screen -t emacs 3 zsh +# screen -t todo 4 zsh -c 'cd ~/Documents/_custom_apps/; zsh -i' +# screen -t shell 5 zsh + +# Start at window 1 +bind c screen 1 +bind 0 select 10 +select 1 + +#backtick 1 60 60 $HOME/Tools/get_freemem +#hardstatus alwayslastline "Free: %1`" + +#Hotkey for window resizing +bind = resize = +bind + resize +1 +bind - resize -1 +bind _ resize max + +# Ctrl + ARROW_UP/ARROW_DOWN +bindkey "^[[A" resize +1 +bindkey "^[[B" resize -1 + +# Useful bindings as Vim(hjkl) +bind j focus down +bind k focus up +bind h focus left +bind l focus right + +# Integrating GNU Screen copy/scrollback mode with the local system clipboard. i.e. Copying to the Mac Clipboard +# bind y eval "writebuf" "exec sh -c 'pbcopy < /tmp/screen-exchange'" + +# hardcopydir: The directory which contains all hardcopies. +hardcopydir ~/.screen + +msgwait 10 +setenv DISPLAY ':0' + +# mouse tracking allows to switch region focus by clicking +mousetrack on +# source .screen_layout +# layout save def diff --git a/.profile b/.profile index 03fd6f1..fa2d05b 100644 --- a/.profile +++ b/.profile @@ -23,21 +23,24 @@ ENV=$HOME/.shrc; export ENV export PATH="${HOME}/.local/bin:${PATH}" # Apps -export EDITOR="nvim" -export VISUAL="nvim" -export PAGER="less" -export TERMINAL="alacritty" -export BROWSER="firefox" -export READER="zathura" -export FILE="vifm" +export EDITOR='nvim' +export VISUAL='nvim' +export PAGER='less' +export TERMINAL='alacritty' +export BROWSER='firefox' +export READER='zathura' +export FILE='vifm' # UTF-8 -export LANG="en_US.UTF-8" +export CHARSET='UTF-8' +export LANG='en_US.UTF-8' +export LC_COLLATE='C' # xdg export XDG_DATA_HOME="$HOME"/.local/share export XDG_CONFIG_HOME="$HOME"/.config export XDG_CACHE_HOME="$HOME"/.cache +export XDG_RUNTIME_DIR=/tmp export XDG_MUSIC_DIR="$HOME"/mu # Cleanup @@ -47,19 +50,26 @@ export ANDROID_EMULATOR_HOME="$XDG_DATA_HOME"/android/ export ADB_VENDOR_KEY="$XDG_CONFIG_HOME"/android export CARGO_HOME="$XDG_DATA_HOME"/cargo export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker -export MACHINE_STORAGE_PATH="$XDG_DATA_HOME"/docker-machine export GNUPGHOME="$XDG_DATA_HOME"/gnupg -export LESSHISTFILE="-" +export MACHINE_STORAGE_PATH="$XDG_DATA_HOME"/docker-machine +export NODE_REPL_HISTORY="$XDG_DATA_HOME"/node_repl_history +export NOTMUCH_CONFIG="$XDG_CONFIG_HOME"/notmuch/notmuchrc +export NMBGIT="$XDG_DATA_HOME"/notmuch/nmbug +export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc +export SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc +export STACK_ROOT="$XDG_DATA_HOME"/stack +export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass # ccache -export CCACHE_PATH="/usr/bin:/usr/local/bin:/usr/local/llvm11/bin" -export CCACHE_DIR="/var/cache/ccache-jozan" -export CCACHE_LOGFILE="/var/log/ccache.log" +export CCACHE_PATH='/usr/bin:/usr/local/bin:/usr/local/llvm11/bin' +export CCACHE_DIR='/var/cache/ccache-jozan' +export CCACHE_LOGFILE='/var/log/ccache.log' # Apps config export FZF_DEFAULT_COMMAND='ag -g "" --ignore dotfiles-bsd' export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border' export LESS="-R" +export LESSHISTFILE='-' export MANPAGER="less -R -M +Gg" export MPD_HOST="${HOME}/.config/mpd/socket" export RUSTFLAGS="-L /usr/local/lib" diff --git a/.screenrc b/.screenrc deleted file mode 100644 index 5ab5917..0000000 --- a/.screenrc +++ /dev/null @@ -1,177 +0,0 @@ -#$HOME/.screenrc -################################################################################# -# Usage: -# [kent]@rd1-2:~$ screen -r ==> resumes a detached screen session -# [kent]@rd1-2:~$ screen -x ==> Cool, Attach to a not detached screen session. (Multi display mode) -# detach : Press F10 or "C-a d" -# HELP: "C-a, ?" -# "C-a C-a" : fast switch between 2 screens -################################################################################# - -altscreen on # Refresh the display when exiting programs like vim, nano, irssi and etc. -defutf8 on -defc1 off # treat input chars 128 ~ 159 as control functions -defflow on -vbell_msg "Ding ding!!" -vbell off # i.e. set to audible bell, used to redirect bell to terminal (putty) for "flashing effect" -defencoding utf8 -# cjkwidth on - -# 256 Color Support -termcapinfo xterm "Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm" -#for Mac -termcapinfo xterm-color "Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm" - -term $TERM # depend on $TERM -term xterm-256color # or specified term - -# allow bold colors - necessary for some reason -attrcolor b ".I" -attrcolor i "+b" - -# erase background with current bg color -defbce on - -# some environment setting -autodetach on -startup_message off -shell -$SHELL - -# dynamically udpate shell title, Sometimes it's bothersome...XD -# Need to add this line PROMPT_COMMAND='echo -n -e "\033k\033\134"' to $HOME/.bashrc -# shelltitle '$ |Bash' - -# setup 10,000 lines of available scrollback copy/paste -# NOTE: memory eating monster... -defscrollback 10000 - -# If a window goes unresponsive, don't block the whole session waiting for it. -nonblock on - -# fix scrollback in putty, this is cool! -termcapinfo xterm* ti@:te@ -#termcapinfo xterm|xterms|xs|rxvt ti@:te@ - -# turn-off log -#log off -logfile $HOME/tmp/screen-%Y%m%d-%n.log -#deflog on - -# caption style -#caption always "%{.KW} %-w%{.mW}[%n] %t%{.KW}%+w" -#caption always "%{=u .G} %-w%<%{=ub .y}%n %t%{=u .G}%+w " -#caption always "%{=u kC} %= %-w%L>%{=b G}[:%n %t:]%{-}%52<%+w %L=" -#caption always "%{= KW}%-w%{= ky} [%n] %t %{-}%+w %-= %{= Kk}[%l] %{= Kk}[%Y/%m/%d %c]" -caption always "%{= KW}%-w%{= kc} [%n] %t %{-}%+w %-= %{= Kk}[%H | %l | %m/%d %c]" - -# hardstatus style -hardstatus alwaysignore -#hardstatus alwayslastline "%{= .K} [%l]%<%=%{= .W}@%H %=%{= .y} %Y/%m/%d%{= .m} %C %A" -#hardstatus alwayslastline '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]' -#hardstatus alwayslastline "%{R}[ %{w}%1` %{R}]%=%{M}%e %{G}%H %{Y} %c %{R} %d/%m/%Y %{K} Load: %l %{w}" -#hardstatus alwayslastline "%{= wk} %{by} %H %{wk} | %-Lw%{kw}◣%{= g}%n%f* %t%{wk}◤%{wk}%+Lw%< %= %{kw}◣%{= R} [%m/%d %c] %{-}" - -# Ctrl + left : prev -# Ctrl + right : next -bindkey "^[O5D" prev -bindkey "^[O5C" next -bindkey "^[Od" prev -bindkey "^[Oc" next -bindkey "\033[D" prev -bindkey "\033[C" next -# putty -bindkey "^[[D" prev -bindkey "^[[C" next -# gnome-terminal -bindkey "^[[1;5D" prev -bindkey "^[[1;5C" next - -# Vim HJKL-style -# Alt + H : prev -# Alt + L : next -bindkey "^[H" prev -bindkey "^[L" next - -# /*Need to hack putty*/ -# (Mac - iTerm) just add key mapping! Cool iTerm -# (Win - PuTTY) Resolved by AutoHotkey -#Ctrl + , : prev -#Ctrl + . : next -#bindkey "\274" prev -#bindkey "\276" next - -# (Win - PuTTY) Resolved by AutoHotkey -# /*Need to hack putty*/ -# Ctrl + Tab : prev (Firefox-way) -# Ctrl + Shift + Tab : next (Firefox-way) -#bindkey "^[[27;5;9~" next -#bindkey "^[[27;6;9~" prev - -# Ctrl + t : new screen (Firefox-way), shit conflict with cscope -#bindkey "\024" screen -# Ctrl + w : close screen (Firefox-way), shit conflict with vim - window control -#bindkey "\027" kill - - -# Alt + left/right, will conflict with my vimrc mapping -#bindkey "^[^[OC" next -#bindkey "^[^[OD" prev -#Alt + ,/. -#bindkey ^[, next -#bindkey ^[. prev - -# C-a b : encoding big5 -# C-a u : encoding utf8 -bind b encoding big5 utf8 -bind u encoding utf8 utf8 - -# C-a $num : Switch to window number 0 - 9, or to the blank window. -bindkey "^[[A" number 1 - -# F10 : detach -bindkey -k k; detach - -# set the title for the default shell or specified program. -# screen -t gotop 1 gotop -# screen -t lf 2 lf -# screen -t emacs 3 zsh -# screen -t todo 4 zsh -c 'cd ~/Documents/_custom_apps/; zsh -i' -# screen -t shell 5 zsh - -# Start at window 1 -bind c screen 1 -bind 0 select 10 -select 1 - -#backtick 1 60 60 $HOME/Tools/get_freemem -#hardstatus alwayslastline "Free: %1`" - -#Hotkey for window resizing -bind = resize = -bind + resize +1 -bind - resize -1 -bind _ resize max - -# Ctrl + ARROW_UP/ARROW_DOWN -bindkey "^[[A" resize +1 -bindkey "^[[B" resize -1 - -# Useful bindings as Vim(hjkl) -bind j focus down -bind k focus up -bind h focus left -bind l focus right - -# Integrating GNU Screen copy/scrollback mode with the local system clipboard. i.e. Copying to the Mac Clipboard -# bind y eval "writebuf" "exec sh -c 'pbcopy < /tmp/screen-exchange'" - -# hardcopydir: The directory which contains all hardcopies. -hardcopydir ~/.screen - -msgwait 10 -setenv DISPLAY ':0' - -# mouse tracking allows to switch region focus by clicking -mousetrack on -# source .screen_layout -# layout save def -- cgit v1.2.3