blob: 75c23de79b5fc33a3d3adc242790d026efbd4c10 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# .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'
#EXPORTS
export EDITOR='nvim'
#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"
}
|