diff --git a/.bashrc b/.bashrc index cb98ca1..ae9b336 100755 --- a/.bashrc +++ b/.bashrc @@ -18,13 +18,15 @@ export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups export HISTCONTROL=ignoreboth # append to the history file, don't overwrite it -shopt -s histappend +if [ -x "$(command -v shopt)" ]; then + shopt -s histappend -# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) + # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) -# check the window size after each command and, if necessary, -# update the values of LINES and COLUMNS. -shopt -s checkwinsize + # check the window size after each command and, if necessary, + # update the values of LINES and COLUMNS. + shopt -s checkwinsize +fi # make less more friendly for non-text input files, see lesspipe(1) [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" @@ -36,7 +38,8 @@ fi # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in - xterm-color) color_prompt=yes;; + xterm*|rxvt*) + color_prompt=yes;; esac # uncomment for a colored prompt, if the terminal has the capability; turned diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 5708307..b9718f5 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -138,6 +138,11 @@ (lambda () (setq-local company-clang-arguments '("-std=c++14"))))) +;; Doc mode +(require 'doc-mode) +(add-hook 'c-mode-common-hook 'doc-mode) +(add-hook 'c++-mode-common-hook 'doc-mode) + ;; Latex (use-package tex-mik :config diff --git a/eclipse-javaformat.xml b/eclipse-javaformat.xml new file mode 100644 index 0000000..1d1f1e0 --- /dev/null +++ b/eclipse-javaformat.xml @@ -0,0 +1,315 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +