Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # append to bashrc my aliases
  4. echo "Appending aliases to .bashrc"
  5. echo "
  6. alias ll='ls -lt'
  7. " >> ~/.bashrc
  8.  
  9. # overwrite .inputrc
  10. echo "Overwriting .inputrc"
  11. echo '
  12. # do not bell on tab-completion
  13. #set bell-style none
  14.  
  15. set meta-flag on
  16. set input-meta on
  17. set convert-meta off
  18. set output-meta on
  19.  
  20. # Completed names which are symbolic links to
  21. # directories have a slash appended.
  22. set mark-symlinked-directories on
  23.  
  24. $if mode=emacs
  25.  
  26. # for linux console and RH/Debian xterm
  27. "\e[1~": beginning-of-line
  28. "\e[4~": end-of-line
  29. "\e[5~": beginning-of-history
  30. "\e[6~": end-of-history
  31. "\e[3~": delete-char
  32. "\e[2~": quoted-insert
  33. "\e[5C": forward-word
  34. "\e[5D": backward-word
  35. "\e[1;5C": forward-word
  36. "\e[1;5D": backward-word
  37.  
  38. # for rxvt
  39. "\e[8~": end-of-line
  40.  
  41. # for non RH/Debian xterm, cant hurt for RH/DEbian xterm
  42. "\eOH": beginning-of-line
  43. "\eOF": end-of-line
  44.  
  45. # for freebsd console
  46. "\e[H": beginning-of-line
  47. "\e[F": end-of-line
  48. $endif
  49.  
  50. # Custom bindings
  51. "\e[A": history-search-backward
  52. "\e[B": history-search-forward
  53. ' >> ~/.inputrc
  54.  
  55. # once bashrc and inputrc are setup, append to bash_profile
  56. echo "Appending to .bash_profile"
  57. echo "
  58. export CLICOLOR=1
  59. export LSCOLORS=ExFxCxDxBxegedabagacad
  60. export INPUTRC=~/.inputrc
  61. export GREP_OPTIONS='--color=auto'
  62.  
  63. source ~/.bashrc
  64. " >> ~/.bash_profile
  65.  
  66. echo "Sourcing new .bash_profile"
  67. source ~/.bash_profile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement