aboutsummaryrefslogtreecommitdiffstats
path: root/bashrc/.bashrc
diff options
context:
space:
mode:
authorSpacedio <spacedio@thernusen.net>2026-02-22 10:07:58 -0500
committerSpacedio <spacedio@thernusen.net>2026-02-22 10:07:58 -0500
commit569d1ef6983c7aa39f778513a9f8e4cd251f7d6a (patch)
tree08f465d64fc9f7d51ef95b6066a6798609817641 /bashrc/.bashrc
downloaddotfiles-569d1ef6983c7aa39f778513a9f8e4cd251f7d6a.tar.gz
Initial commit
Diffstat (limited to 'bashrc/.bashrc')
-rw-r--r--bashrc/.bashrc18
1 files changed, 18 insertions, 0 deletions
diff --git a/bashrc/.bashrc b/bashrc/.bashrc
new file mode 100644
index 0000000..f3dfc73
--- /dev/null
+++ b/bashrc/.bashrc
@@ -0,0 +1,18 @@
+# .bashrc
+
+# If not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
+alias ls='ls --color=auto'
+alias code='code-oss'
+alias xi='xbps-install'
+export EDITOR='nvim'
+PS1='[\u@\h \W]\$ '
+
+function y() {
+ local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
+ command yazi "$@" --cwd-file="$tmp"
+ IFS= read -r -d '' cwd < "$tmp"
+ [ "$cwd" != "$PWD" ] && [ -d "$cwd" ] && builtin cd -- "$cwd"
+ rm -f -- "$tmp"
+}