summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2022-07-06 19:52:19 -0500
committerBrad Clawsie <brad@b7j0c.org>2022-07-06 19:52:19 -0500
commite1c7d5b4281aac3fdcc9f3a1799f0d6d501977c2 (patch)
tree50a7ffceabd566ff221230be3b2c0b441adac931
parentd8f52456a3b4888ff3f4f1a06e487508dbe3d389 (diff)
refactor
-rw-r--r--dotcsirc24
-rw-r--r--dotprofile29
-rw-r--r--emacs/dotcustomel (renamed from dotcustomel)0
-rw-r--r--emacs/dotemacs (renamed from dotemacs)0
-rw-r--r--fish/config.fish36
-rw-r--r--fish/functions/fish_prompt.fish34
-rw-r--r--git/dotgitconfig (renamed from dotgitconfig)0
-rw-r--r--gnupg/gpg-agent.conf (renamed from gpg-agent.conf)0
-rw-r--r--ssh/dotsshauthorized_keys (renamed from dotsshauthorized_keys)0
-rw-r--r--ssh/dotsshconfig (renamed from dotsshconfig)0
-rw-r--r--tmux/dottmuxconf (renamed from dottmuxconf)0
-rw-r--r--zsh/dotzshrc-arch (renamed from dotzshrc-arch)0
-rw-r--r--zsh/dotzshrc-debian (renamed from dotzshrc-debian)0
13 files changed, 70 insertions, 53 deletions
diff --git a/dotcsirc b/dotcsirc
deleted file mode 100644
index 22bb71b..0000000
--- a/dotcsirc
+++ /dev/null
@@ -1,24 +0,0 @@
-(import (chicken load))
-(load-verbose #f)
-(let ()
- (import (chicken format))
- (import (chicken process-context))
- (import (chicken process signal))
- (unless (get-environment-variable "INSIDE_EMACS")
- (import breadline)
- (import breadline-scheme-completion)
- (history-file (format "~a/.csi_history" (get-environment-variable "HOME")))
- (stifle-history! 10000)
- (completer-word-break-characters-set! "\"\'`;|(")
- (completer-set! scheme-completer)
- (basic-quote-characters-set! "\"|")
- (variable-bind! "blink-matching-paren" "on")
- (paren-blink-timeout-set! 200000)
- (let ((handler (signal-handler signal/int)))
- (set-signal-handler! signal/int
- (lambda (s)
- (cleanup-after-signal!)
- (reset-after-signal!)
- (handler s))))
- (on-exit reset-terminal!)
- (current-input-port (make-readline-port)))) \ No newline at end of file
diff --git a/dotprofile b/dotprofile
deleted file mode 100644
index 8e26e32..0000000
--- a/dotprofile
+++ /dev/null
@@ -1,29 +0,0 @@
-# ~/.profile: executed by the command interpreter for login shells.
-# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
-# exists.
-# see /usr/share/doc/bash/examples/startup-files for examples.
-# the files are located in the bash-doc package.
-
-# the default umask is set in /etc/profile; for setting the umask
-# for ssh logins, install and configure the libpam-umask package.
-#umask 022
-
-# if running bash
-if [ -n "$BASH_VERSION" ]; then
- # include .bashrc if it exists
- if [ -f "$HOME/.bashrc" ]; then
- . "$HOME/.bashrc"
- fi
-fi
-
-# set PATH so it includes user's private bin if it exists
-if [ -d "$HOME/bin" ] ; then
- PATH="$HOME/bin:$PATH"
-fi
-
-# set PATH so it includes user's private bin if it exists
-if [ -d "$HOME/.local/bin" ] ; then
- PATH="$HOME/.local/bin:$PATH"
-fi
-
-source "$HOME/perl5/perlbrew/etc/bashrc"
diff --git a/dotcustomel b/emacs/dotcustomel
index 7d27931..7d27931 100644
--- a/dotcustomel
+++ b/emacs/dotcustomel
diff --git a/dotemacs b/emacs/dotemacs
index bb8bc8d..bb8bc8d 100644
--- a/dotemacs
+++ b/emacs/dotemacs
diff --git a/fish/config.fish b/fish/config.fish
new file mode 100644
index 0000000..2f61a01
--- /dev/null
+++ b/fish/config.fish
@@ -0,0 +1,36 @@
+# perl
+set -gx PERL_UNICODE AS
+set -gx PERL_READLINE_NOWARN yes
+set -gx GROKLOC_REPO $HOME/repos/grokloc-perl5
+set -gx GROKLOC_LIB_INC $GROKLOC_REPO/lib
+set -gx GROKLOC_SERVICE_INC $GROKLOC_REPO/service/app/lib
+set -gx GROKLOC_INCS $GROKLOC_LIB_INC:$GROKLOC_SERVICE_INC
+set -gx PERL5LIB $GROKLOC_INCS:$HOME/perl5/lib/perl5
+
+# paths
+set -gx PATH $HOME/bin:$HOME/perl5/bin:$HOME/go/bin:$HOME/.cargo/bin:$PATH
+
+alias c clear
+alias h history
+
+if status is-interactive
+ # locale
+ set -gx LANG en_US.UTF-8
+ set -gx LC_ALL en_US.UTF-8
+
+ # history
+ set -gx HISTFILE $HOME/.histfile
+ set -gx HISTSIZE 10000
+ set -gx SAVEHIST 10000
+
+ # default editor
+ set -gx EDITOR emacsclient
+ set -gx ALTERNATE_EDITOR emacs
+ set -gx VISUAL emacsclient
+
+ # gnupg
+ set -gx GPG_TTY $(tty)
+ gpg-connect-agent updatestartuptty /bye >/dev/null
+
+ clear;
+end
diff --git a/fish/functions/fish_prompt.fish b/fish/functions/fish_prompt.fish
new file mode 100644
index 0000000..506e245
--- /dev/null
+++ b/fish/functions/fish_prompt.fish
@@ -0,0 +1,34 @@
+# name: Astronaut
+# author: Radu Potop
+# description: A prompt theme similar to Starship.rs but without the emojis.
+
+function fish_prompt --description 'Write out the prompt'
+ set -l last_status $status
+ set -l normal (set_color normal)
+ set -l status_color (set_color brgreen)
+ set -l cwd_color (set_color $fish_color_cwd)
+ set -l vcs_color (set_color brpurple)
+ set -l prompt_status ""
+
+ # Since we display the prompt on a new line allow the directory names to be longer.
+ set -q fish_prompt_pwd_dir_length
+ or set -lx fish_prompt_pwd_dir_length 0
+
+ # Color the prompt differently when we're root
+ set -l suffix '>'
+ if functions -q fish_is_root_user; and fish_is_root_user
+ if set -q fish_color_cwd_root
+ set cwd_color (set_color $fish_color_cwd_root)
+ end
+ set suffix '#'
+ end
+
+ # Color the prompt in red on error
+ if test $last_status -ne 0
+ set status_color (set_color $fish_color_error)
+ set prompt_status $status_color "[" $last_status "]" $normal
+ end
+
+ echo -s (prompt_login) ' ' $cwd_color (prompt_pwd) $vcs_color (fish_vcs_prompt) $normal ' ' $prompt_status
+ echo -n -s $status_color $suffix ' ' $normal
+end
diff --git a/dotgitconfig b/git/dotgitconfig
index 1dc055d..1dc055d 100644
--- a/dotgitconfig
+++ b/git/dotgitconfig
diff --git a/gpg-agent.conf b/gnupg/gpg-agent.conf
index d25051c..d25051c 100644
--- a/gpg-agent.conf
+++ b/gnupg/gpg-agent.conf
diff --git a/dotsshauthorized_keys b/ssh/dotsshauthorized_keys
index be0d45a..be0d45a 100644
--- a/dotsshauthorized_keys
+++ b/ssh/dotsshauthorized_keys
diff --git a/dotsshconfig b/ssh/dotsshconfig
index 12a6d7b..12a6d7b 100644
--- a/dotsshconfig
+++ b/ssh/dotsshconfig
diff --git a/dottmuxconf b/tmux/dottmuxconf
index adec489..adec489 100644
--- a/dottmuxconf
+++ b/tmux/dottmuxconf
diff --git a/dotzshrc-arch b/zsh/dotzshrc-arch
index b9920c5..b9920c5 100644
--- a/dotzshrc-arch
+++ b/zsh/dotzshrc-arch
diff --git a/dotzshrc-debian b/zsh/dotzshrc-debian
index bcc1cc8..bcc1cc8 100644
--- a/dotzshrc-debian
+++ b/zsh/dotzshrc-debian