From 5a4e777e5d18faf6e829d95aa6947ec396f6dff8 Mon Sep 17 00:00:00 2001 From: Spacedio Date: Mon, 27 Apr 2026 19:02:20 -0400 Subject: Renamed bashrc to bash since it now contains another file related to bash. --- bash/.bash_profile | 9 +++++++++ bash/.bashrc | 34 ++++++++++++++++++++++++++++++++++ bashrc/.bash_profile | 9 --------- bashrc/.bashrc | 34 ---------------------------------- 4 files changed, 43 insertions(+), 43 deletions(-) create mode 100644 bash/.bash_profile create mode 100644 bash/.bashrc delete mode 100644 bashrc/.bash_profile delete mode 100644 bashrc/.bashrc diff --git a/bash/.bash_profile b/bash/.bash_profile new file mode 100644 index 0000000..ac667e7 --- /dev/null +++ b/bash/.bash_profile @@ -0,0 +1,9 @@ +# .bash_profile + +# Get the aliases and functions +[ -f $HOME/.bashrc ] && . $HOME/.bashrc + +# Start X11 automatically on TTY1 login +if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then + exec startx +fi \ No newline at end of file diff --git a/bash/.bashrc b/bash/.bashrc new file mode 100644 index 0000000..12ab075 --- /dev/null +++ b/bash/.bashrc @@ -0,0 +1,34 @@ +# .bashrc + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +#ALIASES +alias ls='ls --color=auto' +alias l='ls -lahF' +alias code='code-oss' +alias xi='sudo xbps-install' +alias xr='sudo xbps-remove' +alias ..='cd ..' +alias poweroff='sudo poweroff' +alias reboot='sudo reboot' +alias ssh-kleingelt='ssh spacedio@thernusen.net' +alias ssh-git='ssh git.thernusen.net -p 23231' +alias ssh-eligor='ssh closetcat@eligor.home.arpa' + +#EXPORTS +export PATH="$HOME/.local/bin:$PATH" +export EDITOR='nvim' +export GTK_THEME=Adwaita:dark +export ADW_DISABLE_PORTAL=1 + +#OTHER +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" +} diff --git a/bashrc/.bash_profile b/bashrc/.bash_profile deleted file mode 100644 index ac667e7..0000000 --- a/bashrc/.bash_profile +++ /dev/null @@ -1,9 +0,0 @@ -# .bash_profile - -# Get the aliases and functions -[ -f $HOME/.bashrc ] && . $HOME/.bashrc - -# Start X11 automatically on TTY1 login -if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then - exec startx -fi \ No newline at end of file diff --git a/bashrc/.bashrc b/bashrc/.bashrc deleted file mode 100644 index 12ab075..0000000 --- a/bashrc/.bashrc +++ /dev/null @@ -1,34 +0,0 @@ -# .bashrc - -# If not running interactively, don't do anything -[[ $- != *i* ]] && return - -#ALIASES -alias ls='ls --color=auto' -alias l='ls -lahF' -alias code='code-oss' -alias xi='sudo xbps-install' -alias xr='sudo xbps-remove' -alias ..='cd ..' -alias poweroff='sudo poweroff' -alias reboot='sudo reboot' -alias ssh-kleingelt='ssh spacedio@thernusen.net' -alias ssh-git='ssh git.thernusen.net -p 23231' -alias ssh-eligor='ssh closetcat@eligor.home.arpa' - -#EXPORTS -export PATH="$HOME/.local/bin:$PATH" -export EDITOR='nvim' -export GTK_THEME=Adwaita:dark -export ADW_DISABLE_PORTAL=1 - -#OTHER -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