Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions images/homelab-workspace/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ COPY --link --chown=root:root --chmod=644 shell/bash_aliases.defaults /etc/bash_
COPY --link --chown=root:root --chmod=644 shell/bash_completion.defaults /etc/bash_completion.defaults
COPY --link --chown=root:root --chmod=644 shell/bashrc.defaults /etc/bashrc.defaults
COPY --link --chown=root:root --chmod=644 shell/bashrc /etc/skel/.bashrc
COPY --link --chown=root:root --chmod=644 shell/bashrc.extra /etc/skel/.bashrc.extra

# coder initialization scripts
RUN mkdir -p /opt/coder/bin
Expand Down
6 changes: 2 additions & 4 deletions images/homelab-workspace/shell/bash_aliases.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ if [ -x /usr/bin/dircolors ]; then
alias egrep='egrep --color=auto'
fi

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias ls='exa -F'
alias ll='exa -alF'

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$//'\'')"'
alias bat='batcat'
9 changes: 9 additions & 0 deletions images/homelab-workspace/shell/bash_completion.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@ source <(pip completion --bash)

# flux
source <(flux completion bash)

# gh
source <(gh completion -s bash)

# kind
source <(kind completion bash)

# mc
complete -C /usr/local/sbin/mc mc
1 change: 1 addition & 0 deletions images/homelab-workspace/shell/bashrc.extra
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source <(zoxide init bash)