summaryrefslogtreecommitdiff
path: root/dots/.bashrc
diff options
context:
space:
mode:
authorCasper <me@skylarcloud.xyz>2024-12-18 15:21:28 -0700
committerCasper <me@skylarcloud.xyz>2024-12-18 15:21:28 -0700
commit1cb78494f3022fe9d808d070507bddf552c64753 (patch)
tree5c827daee442e211941bed7cc89decc95f8efbd7 /dots/.bashrc
Initial commit, new repo
Diffstat (limited to 'dots/.bashrc')
-rw-r--r--dots/.bashrc36
1 files changed, 36 insertions, 0 deletions
diff --git a/dots/.bashrc b/dots/.bashrc
new file mode 100644
index 0000000..eb63c13
--- /dev/null
+++ b/dots/.bashrc
@@ -0,0 +1,36 @@
+# .bashrc
+
+# Source global definitions
+if [ -f /etc/bashrc ]; then
+ . /etc/bashrc
+fi
+
+# User specific environment
+if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
+then
+ PATH="$HOME/.local/bin:$HOME/bin:$PATH"
+fi
+export PATH
+
+# Uncomment the following line if you don't like systemctl's auto-paging feature:
+# export SYSTEMD_PAGER=
+
+# User specific aliases and functions
+
+alias rm='rm -i'
+alias cp='cp -i'
+alias mv='mv -i'
+
+alias qinst='sudo qubes-dom0-update'
+alias qctl='sudo qubesctl'
+alias qctla='sudo qubesctl state.apply'
+alias qctlas='sudo qubesctl state.sls'
+alias qctlaa='sudo qubesctl --all state.apply'
+qctlat ()
+{
+ sudo qubesctl --targets="$1" state.apply
+}
+
+set -o vi
+export VISUAL=vim
+export EDITOR="$VISUAL"