Skip to content

Commit

Permalink
Modify .spacemacs, .bashrc: prompt and permanent history file name, i…
Browse files Browse the repository at this point in the history
…3/config
  • Loading branch information
antoniotrkdz committed Mar 5, 2019
1 parent 1191363 commit 438b5f6
Show file tree
Hide file tree
Showing 6 changed files with 270 additions and 152 deletions.
23 changes: 22 additions & 1 deletion .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function parse_git_branch {
}

if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[32m\]\u\[\033[00m\]@\h:\[\033[32m\]\w\[\033[00m\]$(parse_git_branch)\[\033[00m\]$ '
PS1='${debian_chroot:+($debian_chroot)}\[\033[32m\]\u\[\033[00m\]@\h:\[\033[33m\]\w\[\033[00m\]$(parse_git_branch)\[\033[00m\]\$ '
##PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
Expand Down Expand Up @@ -129,3 +129,24 @@ fi
# https://github.com/alexistoulotte/bundler_bash_completion
# eval "$(complete_bundle_bash_command init)"

# php artisan bash completion
# https://gist.github.com/tuanpht/2c92f39c74f404ffc712c9078a384f39
# see also https://gist.github.com/jhoff/8fbe4116d74931751ecc9e8203dfb7c4
_artisan()
{
local arg="${COMP_LINE#php }"

case "$arg" in
artisan*)
COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
COMMANDS=`php artisan --raw --no-ansi list | sed "s/[[:space:]].*//g"`
COMPREPLY=(`compgen -W "$COMMANDS" -- "${COMP_WORDS[COMP_CWORD]}"`)
;;
*)
COMPREPLY=( $(compgen -o default -- "${COMP_WORDS[COMP_CWORD]}") )
;;
esac

return 0
}
complete -F _artisan php
4 changes: 2 additions & 2 deletions .spacemacs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ It should only modify the values of Spacemacs settings."
;; refer to the DOCUMENTATION.org for more info on how to create your own
;; spaceline theme. Value can be a symbol or list with additional properties.
;; (default '(spacemacs :separator wave :separator-scale 1.5))
dotspacemacs-mode-line-theme '(spacemacs :separator wave :separator-scale 1.5)
dotspacemacs-mode-line-theme '(spacemacs :separator slant :separator-scale 1.5)

;; If non-nil the cursor color matches the state color in GUI Emacs.
;; (default t)
Expand Down Expand Up @@ -494,7 +494,7 @@ This function is called at the very end of Spacemacs initialization."
'(custom-safe-themes
(quote
("f0dc4ddca147f3c7b1c7397141b888562a48d9888f1595d69572db73be99a024" default)))
'(doom-modeline-mode t)
;; '(doom-modeline-mode t)
'(evil-want-Y-yank-to-eol nil)
'(evil-want-fine-undo t)
'(global-undo-tree-mode t)
Expand Down
9 changes: 8 additions & 1 deletion .xsessionrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
/usr/bin/pkill xcape
/usr/bin/xcape -e "Super_L=space"

# make the touchpad behave nicely when typing
# Make the touchpad behave nicely when typing
# Useful with laptops
#/usr/bin/pkill syndaemon
#/usr/bin/syndaemon -d -i 0.7 -K -R -t

# Some settings for Wacom tablet (Bamboo)
# Rotate all the devices upside-down
/usr/bin/xsetwacom --set $(xsetwacom --list dev | gawk '/touch/ {print $8}') Rotate half
/usr/bin/xsetwacom --set $(xsetwacom --list dev | gawk '/stylus/ {print $8}') Rotate half
/usr/bin/xsetwacom --set $(xsetwacom --list dev | gawk '/eraser/ {print $8}') Rotate half
Loading

0 comments on commit 438b5f6

Please sign in to comment.