diff options
| author | Spacedio <spacedio@thernusen.net> | 2026-04-27 19:02:20 -0400 |
|---|---|---|
| committer | Spacedio <spacedio@thernusen.net> | 2026-04-27 19:02:20 -0400 |
| commit | 5a4e777e5d18faf6e829d95aa6947ec396f6dff8 (patch) | |
| tree | 4762d2062f7ea73df51d0c809cb61a694325ad7d /bash/.bashrc | |
| parent | b4d43e1d4d390ad4f429a02edd90927070a35050 (diff) | |
| download | dotfiles-5a4e777e5d18faf6e829d95aa6947ec396f6dff8.tar.gz | |
Renamed bashrc to bash since it now contains another file related to bash.
Diffstat (limited to 'bash/.bashrc')
| -rw-r--r-- | bash/.bashrc | 34 |
1 files changed, 34 insertions, 0 deletions
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" +} |
