~idmyn/dotfiles

65e54efddb353c1f30e0f631fe5e1c4de3cb7a2e — David Mynors a month ago cb58f62
Add basic bashrc
7 files changed, 37 insertions(+), 25 deletions(-)

M install.conf.yaml
M macOS/Brewfile
M phoenix/phoenix.js
D shell/.aliases
A shell/.bashrc
D shell/.profile
D shell/install-plugins.sh
M install.conf.yaml => install.conf.yaml +1 -3
@@ 13,13 13,12 @@
    ~/.finicky.js: finicky/.finicky.js
    ~/.config/phoenix/phoenix.js: phoenix/phoenix.js
    ~/.config/karabiner.edn: karabiner/karabiner.edn
    ~/.profile: shell/.profile
    ~/.aliases: shell/.aliases
    ~/.secret-aliases: shell/.secret-aliases
    ~/.elvish/rc.elv: shell/elvish/rc.elv
    ~/.elvish/lib/nix.elv: shell/elvish/lib/nix.elv
    ~/.elvish/lib/direnv.elv: shell/elvish/lib/direnv.elv
    ~/.elvish/lib/secrets.elv: shell/elvish/lib/secrets.elv
    ~/.bashrc: shell/.bashrc
    ~/.zshrc: shell/zsh/.zshrc
    ~/.zshenv: shell/zsh/.zshenv
    ~/.zsh_plugins.txt: shell/zsh/.zsh_plugins.txt


@@ 36,5 35,4 @@

- shell:
  - [git submodule update --init --recursive, Installing submodules]
  - [bash ./shell/install-plugins.sh, Installing zsh plugins]
  - [cd macOS && bash homebrew.sh, Installing packages from homebrew]

M macOS/Brewfile => macOS/Brewfile +1 -3
@@ 2,6 2,7 @@ tap "homebrew/cask-fonts"
cask "font-input"
cask "font-jetbrains-mono"

cask "karabiner-elements"
brew "yqrashawn/goku/goku"

brew "pass"


@@ 22,7 23,6 @@ cask "qlmarkdown"
cask "sensiblesidebuttons"

brew "fd"
brew "jq"
brew "git"
brew "asdf"
brew "grip"


@@ 36,5 36,3 @@ brew "tealdeer"
brew "git-crypt"
brew "wifi-password"
brew "borkdude/brew/jet"
brew "borkdude/brew/babashka"
brew "getantibody/tap/antibody"

M phoenix/phoenix.js => phoenix/phoenix.js +8 -0
@@ 126,5 126,13 @@ const showOrOpenChat = new Key('c', ['alt', 'ctrl'], () => {
  }
})

const showOrOpenInsomnia = new Key('i', ['alt', 'ctrl'], () => {
  if (App.get('Insomnia')) {
    App.get('Insomnia').focus()
  } else {
    App.launch('Insomnia')
  }
})

Phoenix.log("hello", App.get('Emacs').windows().length > 0)
/* eslint-enable no-unused-vars */

D shell/.aliases => shell/.aliases +0 -8
@@ 1,8 0,0 @@
alias q="exit"
alias k="kubectl"
alias a="archive"
alias b="buku --suggest --db ~/Dropbox/System/bookmarks.db"
alias la="ls -a"
alias ll="ls -lah"
alias otp="pass otp -c"
alias doom="~/.emacs.d/bin/doom"

A shell/.bashrc => shell/.bashrc +27 -0
@@ 0,0 1,27 @@
source ~/.secret-aliases

export BASH_SILENCE_DEPRECATION_WARNING=1
export EDITOR="emacsclient -q -c -a ''"

PS1="\n\w\\n $ "

alias q="exit"
alias ls="echo; ls"

# https://metaredux.com/posts/2020/07/07/supercharge-your-bash-history.html

# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
shopt -s histappend
# append and reload the history after each command
PROMPT_COMMAND="history -a; history -n"

# ignore certain commands from the history
HISTIGNORE="ls:ll:cd:pwd:bg:fg:history"

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=100000
HISTFILESIZE=10000000

D shell/.profile => shell/.profile +0 -8
@@ 1,8 0,0 @@
export PATH="$PATH:$HOME/.ghcup/bin:$HOME/.local/bin:$HOME/.bin"
export EDITOR="$HOME/.bin/ec"

export ARCHIVE_DIR="$HOME/Dropbox/archive"

export PATH="$HOME/.cargo/bin:$PATH"
if [ -e /Users/davidmy/.nix-profile/etc/profile.d/nix.sh ]; then . /Users/davidmy/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
if [ -e /Users/david/.nix-profile/etc/profile.d/nix.sh ]; then . /Users/david/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer

D shell/install-plugins.sh => shell/install-plugins.sh +0 -3
@@ 1,3 0,0 @@
#!/usr/bin/env bash

antibody bundle < ~/.zsh_plugins.txt > ~/.zsh_plugins.sh