about summary refs log tree commit diff
path: root/r
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--r/.Rprofile71
-rwxr-xr-xr/@install7
-rw-r--r--radare2/.radare2rc3
-rwxr-xr-xradare2/@install7
-rw-r--r--readline/.inputrc65
-rwxr-xr-xreadline/@install7
-rw-r--r--readme.org2
-rw-r--r--rhash/.rhashrc2
-rwxr-xr-xrhash/@install7
-rw-r--r--ripgrep/.rgrc50
-rwxr-xr-xripgrep/@install7
11 files changed, 228 insertions, 0 deletions
diff --git a/r/.Rprofile b/r/.Rprofile
new file mode 100644
index 0000000..a4afb3b
--- /dev/null
+++ b/r/.Rprofile
@@ -0,0 +1,71 @@
+local({
+    r <- getOption("repos")
+    r["CRAN"] <- "http://cran.revolutionanalytics.com"
+    options(repos = r)
+})
+
+options(prompt="λ ")
+options(continue="    … ")
+
+options("digits.secs" = 3)
+options(browserNLdisabled = TRUE)
+options(editor = "vim")
+options(error = NULL)
+options(max.print = 100)
+options(max.print = 500)
+options(menu.graphics = FALSE)
+options(scipen = 10)
+options(show.signif.stars = FALSE)
+options(showErrorCalls = TRUE)
+options(showWarnCalls = TRUE)
+options(stringsAsFactors = FALSE)
+options(warn = 0)
+options(warnPartialMatchDollar = TRUE)
+options(width = 80)
+
+q <- function (save = "no", ...)
+    quit(save = save, ...)
+
+utils::rc.settings(ipck = TRUE)
+
+.First <- function()
+{
+    if (interactive())
+    {
+        library(utils)
+        timestamp(prefix = paste("##------ [", getwd(), "] ", sep = ""))
+    }
+}
+
+.Last <- function()
+{
+    if (interactive())
+    {
+        hist_file <- Sys.getenv("R_HISTFILE")
+        if (hist_file == "")
+            hist_file <- "~/.RHistory"
+        savehistory(hist_file)
+    }
+}
+
+if (Sys.getenv("TERM") == "xterm-256color")
+    library("colorout")
+
+.env <- new.env()
+
+.env$unrowname <- function(x)
+{
+    rownames(x) <- NULL
+    x
+}
+
+.env$unfactor <- function(df)
+{
+    id <- sapply(df, is.factor)
+    df[id] <- lapply(df[id], as.character)
+    df
+}
+
+attach(.env)
+
+# vim: filetype=r
diff --git a/r/@install b/r/@install
new file mode 100755
index 0000000..17864b4
--- /dev/null
+++ b/r/@install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+stow \
+    --target="${HOME}" \
+    --ignore="^@.*" \
+    --verbose \
+    r
diff --git a/radare2/.radare2rc b/radare2/.radare2rc
new file mode 100644
index 0000000..4e9b694
--- /dev/null
+++ b/radare2/.radare2rc
@@ -0,0 +1,3 @@
+e io.cache = true
+e scr.color = true
+e scr.utf8 = true
diff --git a/radare2/@install b/radare2/@install
new file mode 100755
index 0000000..6267fb6
--- /dev/null
+++ b/radare2/@install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+stow \
+    --target="${HOME}" \
+    --ignore="^@.*" \
+    --verbose \
+    radare2
diff --git a/readline/.inputrc b/readline/.inputrc
new file mode 100644
index 0000000..d789713
--- /dev/null
+++ b/readline/.inputrc
@@ -0,0 +1,65 @@
+$include /etc/inputrc
+
+set bell-style visible
+set bind-tty-special-chars off
+set blink-matching-paren on
+set colored-completion-prefix on
+set colored-stats on
+set completion-ignore-case on
+set convert-meta off
+set echo-control-characters off
+set editing-mode vi
+set input-meta on
+set mark-symlinked-directories on
+set match-hidden-files off
+set menu-complete-display-prefix on
+set meta-flag on
+set output-meta on
+set page-completions on
+set show-all-if-ambiguous on
+set show-all-if-unmodified on
+set show-mode-in-prompt on
+set visible-stats on
+
+$if mode=emacs
+	"\e[1~": beginning-of-line
+	"\e[4~": end-of-line
+	"\e[5C": forward-word
+	"\e[5D": backward-word
+	"\e[3~": delete-char
+	"\e[5~": history-search-backward
+	"\e[6~": history-search-forward
+	"\t": menu-complete
+$endif
+
+$if mode=vi
+	set keymap vi-command
+	"^": beginning-of-line
+	"$": end-of-line
+	"w": forward-word
+	"b": backward-word
+	"x": delete-char
+	"k": history-search-backward
+	"j": history-search-forward
+	"?": reverse-search-history
+	"/": forward-search-history
+	"gg": beginning-of-history
+	"G": end-of-history
+
+	set keymap vi-insert
+	"\C-l": clear-screen
+	"\C-w": backward-kill-word
+	"\C-a": beginning-of-line
+	"\C-e": end-of-line
+	"\C-p": history-search-backward
+	"\C-n": history-search-forward
+	"\t": menu-complete
+$endif
+
+$if term=linux
+	set vi-ins-mode-string \1\e[?0c\2
+	set vi-cmd-mode-string \1\e[?8c\2
+$else
+	set vi-ins-mode-string \1\e[6 q\2
+	set vi-cmd-mode-string \1\e[2 q\2
+$endif
diff --git a/readline/@install b/readline/@install
new file mode 100755
index 0000000..9a0d78d
--- /dev/null
+++ b/readline/@install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+stow \
+    --target="${HOME}" \
+    --ignore="^@.*" \
+    --verbose \
+    readline
diff --git a/readme.org b/readme.org
new file mode 100644
index 0000000..fa73bad
--- /dev/null
+++ b/readme.org
@@ -0,0 +1,2 @@
+* dotfiles
+Deprecated and no longer be updated.
diff --git a/rhash/.rhashrc b/rhash/.rhashrc
new file mode 100644
index 0000000..fee871d
--- /dev/null
+++ b/rhash/.rhashrc
@@ -0,0 +1,2 @@
+percents=on
+recursive=on
diff --git a/rhash/@install b/rhash/@install
new file mode 100755
index 0000000..bcddf59
--- /dev/null
+++ b/rhash/@install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+stow \
+    --target="${HOME}" \
+    --ignore="^@.*" \
+    --verbose \
+    rhash
diff --git a/ripgrep/.rgrc b/ripgrep/.rgrc
new file mode 100644
index 0000000..e6a3811
--- /dev/null
+++ b/ripgrep/.rgrc
@@ -0,0 +1,50 @@
+--color=auto
+--glob=!*.P
+--glob=!*.Po
+--glob=!*.crt
+--glob=!*.d
+--glob=!*.in
+--glob=!*.m4
+--glob=!*.pem
+--glob=!.bzr/*
+--glob=!.cabal-sandbox/*
+--glob=!.ccls-cache/*
+--glob=!.clang-format
+--glob=!.gdb_history
+--glob=!.ghc.environment.*
+--glob=!.git/*
+--glob=!.gitlab/*
+--glob=!.hg/*
+--glob=!.idea/*
+--glob=!.nupkg.metadata
+--glob=!.stack-work/*
+--glob=!.sublime-settings
+--glob=!.svn/*
+--glob=!.vs/*
+--glob=!.vscode/*
+--glob=!CMakeCache.txt
+--glob=!CMakeFiles/*
+--glob=!CODE_OF_CONDUCT.md
+--glob=!LICENSE
+--glob=!__pycache__/*
+--glob=!autom4te.cache/*
+--glob=!bin/Debug/*
+--glob=!bin/Release/*
+--glob=!build/*
+--glob=!cabal.project.*
+--glob=!cmake_install.cmake
+--glob=!compile_commands.json
+--glob=!config.status
+--glob=!configure
+--glob=!depcomp
+--glob=!dist-newstyle/*
+--glob=!dist/*
+--glob=!install-sh
+--glob=!ltmain.sh
+--glob=!missing
+--glob=!obj/*
+--glob=!stamp-h1
+--hidden
+--max-columns-preview
+--max-columns=100
+--smart-case
diff --git a/ripgrep/@install b/ripgrep/@install
new file mode 100755
index 0000000..1b606df
--- /dev/null
+++ b/ripgrep/@install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+stow \
+    --target="${HOME}" \
+    --ignore="^@.*" \
+    --verbose \
+    ripgrep

Consider giving Nix/NixOS a try! <3