Compare commits
3 Commits
7183911d64
...
341fdb8e2a
| Author | SHA1 | Date | |
|---|---|---|---|
| 341fdb8e2a | |||
| 909fc02f42 | |||
| c35301bd9b |
12
apply-dotfiles
Executable file
12
apply-dotfiles
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env nix-shell
|
||||||
|
#! nix-shell -p stow
|
||||||
|
|
||||||
|
stow bash
|
||||||
|
stow sh
|
||||||
|
stow .inputrc # Readline configuration
|
||||||
|
|
||||||
|
stow vim
|
||||||
|
stow .vimrc
|
||||||
|
|
||||||
|
stow ruby
|
||||||
|
stow python
|
||||||
19
ruby/.irbrc
Normal file
19
ruby/.irbrc
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Runtime Configuration for IRB (Interactive Ruby)
|
||||||
|
require 'irb/completion'
|
||||||
|
|
||||||
|
IRB.conf[:AUTO_INDENT] = true
|
||||||
|
|
||||||
|
# History configuration
|
||||||
|
IRB.conf[:SAVE_HISTORY] = 1000
|
||||||
|
IRB.conf[:HISTORY_FILE] = "#{ENV["HOME"]}/.history/ruby"
|
||||||
|
|
||||||
|
# Custom Prompt
|
||||||
|
|
||||||
|
IRB.conf[:PROMPT][:MY_PROMPT] = {
|
||||||
|
:AUTO_INDENT => true,
|
||||||
|
:PROMPT_I => "\033[1;31m>>\033[0m ",
|
||||||
|
:PROMPT_S => "\033[1;31m\">\033[0m ",
|
||||||
|
:PROMPT_C => "\033[1;31m?>\033[0m ",
|
||||||
|
:RETURN => "\033[1;35m=>\033[0m %s\n"
|
||||||
|
}
|
||||||
|
IRB.conf[:PROMPT_MODE] = :MY_PROMPT
|
||||||
Loading…
x
Reference in New Issue
Block a user