From 569d1ef6983c7aa39f778513a9f8e4cd251f7d6a Mon Sep 17 00:00:00 2001 From: Spacedio Date: Sun, 22 Feb 2026 10:07:58 -0500 Subject: Initial commit --- bashrc/.bashrc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 bashrc/.bashrc (limited to 'bashrc') 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" +} -- cgit v1.2.3