Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
e7ac281
fzf working in nvim.
nekoju Jan 11, 2023
2eac069
Update pre-commit hook for black and pytest.
nekoju Jan 11, 2023
8627976
Fish working now with stripped down config.
Feb 17, 2023
803744b
WIP dev host setup not going so well.
Feb 17, 2023
994de82
Remove a bunch of dev host stuff.
nekoju Feb 19, 2023
014c2c2
Removed a bunch more stuff.
nekoju Feb 19, 2023
a6075fb
Add nested-tmux.
nekoju Feb 20, 2023
78f6b4c
Add tmux plugins.
nekoju Feb 20, 2023
52b1966
Remove tmux plugins.
Feb 20, 2023
86cdddc
Remove submodules.
Feb 20, 2023
0572e4d
Remove some plugins.
Feb 20, 2023
74f1c46
Add basic .zshrc.
Feb 20, 2023
8c27532
Add .zshrc.
Feb 20, 2023
2bdc742
Merge remote-tracking branch 'origin/devhost' into devhost
Feb 20, 2023
e6d8752
Change init.vim to .vimrc.
Feb 20, 2023
907a81d
Change init.vim to .vimrc.
Feb 20, 2023
403f90d
Change init.vim to .vimrc.
Feb 20, 2023
c788e36
Added install script to clone from GH and alias dotfiles.
Feb 28, 2023
6362d33
Change .vimrc and .zshrc.
Feb 28, 2023
f87a7c0
tmux working on servers after removing some plugins.
Feb 28, 2023
7313026
Added vi bash binding.
Mar 1, 2023
b78d965
Add alt-L/R window switching to tmux.
nekoju Mar 3, 2023
46b2d3d
Add alt+arrow tab switching to tmux.
nekoju Mar 6, 2023
01608bc
Add screen-256color to tmux.
nekoju Mar 7, 2023
441db7b
Add ansible playbook for dotfiles.
nekoju Mar 10, 2023
3db04bd
Update .zshrc with logic for bastion server aliases.
nekoju Mar 10, 2023
99dd48a
Update .bashrc and .aliases for servers.
nekoju Mar 16, 2023
003aca7
Include aliases in .gitconfig.
nekoju Mar 16, 2023
03140f1
Set up install script.
nekoju Mar 16, 2023
0d64cdf
Add .bash_profile to setup.
nekoju Mar 16, 2023
df6ff38
Add bindkey -v to .zshrc.
nekoju Mar 7, 2023
66b8e6b
Merge branch 'main' into servers
nekoju Mar 16, 2023
9efa252
Fix .zshrc.
nekoju Mar 16, 2023
6cdc705
Merge branch 'main' into servers
nekoju Mar 24, 2023
78669b0
Add git mergetool handling for vanilla vim.
nekoju Mar 24, 2023
ba9e8c9
Add vim-javascript.vim
nekoju Mar 31, 2023
c8e1933
Change git email.
nekoju May 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .aliases
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls="ls --color=auto"

alias grep="grep --color=auto"
alias fgrep="fgrep --color=auto"
alias egrep="egrep --color=auto"
fi

alias ll="ls -alF"
alias la="ls -A"
alias l="ls -CF"

alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

change-terminal-font () {
[[ -z "${1}" || -z "${2}" ]] && echo "Usage: change-terminal-font FROM_SIZE TO_SIZE"

local from="${1}"
local to="${2}"
local windows_user="$(powershell.exe '$env:UserName' | sed -e 's/\r//g')"
local terminal_config="/c/Users/${windows_user}/AppData/Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/LocalState/settings.json"

perl -i -pe "s/\"fontSize\": ${from}/\"fontSize\": ${to}/g" "${terminal_config}"
}

alias diff="diff --color -u"

alias 755d="find . -type d -exec chmod 755 {} \;"

alias 644f="find . -type f -exec chmod 644 {} \;"

alias mypuppet="cd /etc/puppetlabs/code/environments/njuers/"
50 changes: 50 additions & 0 deletions .bash_profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Add a timestamp to each command.
set -o vi
export HISTTIMEFORMAT="%Y/%m/%d %H:%M:%S: "

# Duplicate lines and lines starting with a space are not put into the history.
export HISTCONTROL=ignoreboth

# Append to the history file, don't overwrite it.
shopt -s histappend

# Ensure $LINES and $COLUMNS always get updated.
shopt -s checkwinsize

# Enable bash completion.
[ -f /etc/bash_completion ] && source /etc/bash_completion

# Improve output of less for binary files.
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# Load aliases if they exist.
[ -f "${HOME}/.aliases" ] && source "${HOME}/.aliases"
[ -f "${HOME}/.aliases.local" ] && source "${HOME}/.aliases.local"

# Determine git branch.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}

# Set a non-distracting prompt.
PS1='\[\]\u@\h\[\]:\[\]\w\[\] \[\]$(parse_git_branch)\[\]\$ '

# If it's an xterm compatible terminal, set the title to user@host: dir.
case "${TERM}" in
xterm*|rxvt*)
PS1="\[\e]0;\u@\h: \w\a\]${PS1}"
;;
*)
;;
esac
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

export PATH=$PATH:~/.gitaliases
9 changes: 7 additions & 2 deletions .bashrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/usr/bin/env bash
# This file runs every time you open a new terminal window.

unset HISTFILE
export LESSHISTFILE="-"

# Limit number of lines and entries in the history. HISTFILESIZE controls the
# history file on disk and HISTSIZE controls lines stored in memory.
export HISTFILESIZE=50000
export HISTSIZE=50000
7 changes: 0 additions & 7 deletions .config/fish/conf.d/omf.fish

This file was deleted.

75 changes: 0 additions & 75 deletions .config/fish/config.fish

This file was deleted.

3 changes: 0 additions & 3 deletions .config/fish/functions/alacritty

This file was deleted.

6 changes: 0 additions & 6 deletions .config/fish/functions/brewClang.fish

This file was deleted.

4 changes: 0 additions & 4 deletions .config/fish/functions/cp.fish

This file was deleted.

4 changes: 0 additions & 4 deletions .config/fish/functions/duall.fish

This file was deleted.

9 changes: 0 additions & 9 deletions .config/fish/functions/edit_cmd.fish

This file was deleted.

6 changes: 0 additions & 6 deletions .config/fish/functions/eutil.fish

This file was deleted.

6 changes: 0 additions & 6 deletions .config/fish/functions/filterSections.fish

This file was deleted.

4 changes: 0 additions & 4 deletions .config/fish/functions/find.fish

This file was deleted.

3 changes: 0 additions & 3 deletions .config/fish/functions/fish_greeting.fish

This file was deleted.

28 changes: 0 additions & 28 deletions .config/fish/functions/fish_prompt.fish

This file was deleted.

32 changes: 0 additions & 32 deletions .config/fish/functions/fish_ssh_agent.fish

This file was deleted.

4 changes: 0 additions & 4 deletions .config/fish/functions/fish_user_key_bindings.fish

This file was deleted.

Loading