summaryrefslogtreecommitdiff
path: root/files/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'files/.bashrc')
-rw-r--r--files/.bashrc49
1 files changed, 49 insertions, 0 deletions
diff --git a/files/.bashrc b/files/.bashrc
new file mode 100644
index 0000000..08e016f
--- /dev/null
+++ b/files/.bashrc
@@ -0,0 +1,49 @@
+# Bash-specific initialization, including for non-login and remote
+# shells (info "(bash) Bash Startup Files").
+
+# Provide a default prompt.
+PS1='\u@\h \w${GUIX_ENVIRONMENT:+ [env]}\$ '
+
+# Export 'SHELL' to child processes. Programs such as 'screen'
+# honor it and otherwise use /bin/sh.
+export SHELL
+
+if [[ $- != *i* ]]
+then
+ # We are being invoked from a non-interactive shell. If this
+ # is an SSH session (as in "ssh host command"), source
+ # /etc/profile so we get PATH and other essential variables.
+ [[ -n "$SSH_CLIENT" ]] && source /etc/profile
+
+ # Don't do anything else, returning a successful return code.
+ return 0
+fi
+
+for i in /etc/bashrc.d/*.sh; do
+ [[ -r $i ]] && source "$i"
+done
+unset i
+
+alias cd="z"
+alias gg="git log --oneline --abbrev-commit --all --graph --decorate --color"
+alias l="lsd -la"
+alias ll="lsd -l"
+alias ls="lsd"
+alias neofetch="fastfetch"
+
+shopt -s histappend
+shopt -s extglob
+shopt -s globstar
+shopt -s checkjobs
+
+GPG_TTY="$(tty)"
+export GPG_TTY
+
+HISTFILESIZE=100000
+HISTSIZE=10000
+PS1="\u@\h:\w$"
+GUIX_PROFILE="/home/andromeda/.config/guix/current"
+. "$GUIX_PROFILE/etc/profile"
+unset GUIX_PROFILE
+
+eval "$(zoxide init bash)"