From 735782be32c6fca65a0b2bd8c4310533d57b610a Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sun, 16 Apr 2023 12:18:31 +0100 Subject: initial commit of dot files --- .bashrc | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .bashrc (limited to '.bashrc') diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..d2d50e0 --- /dev/null +++ b/.bashrc @@ -0,0 +1,49 @@ +# .bashrc + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +alias ls='ls --color=auto' +PS1='[\u@\h \W]\$ ' + +poezio () { ~/soft/poezio/launch.sh; } + +alias xqr='xbps-query -R' +alias xqrs='xbps-query -Rs' + +bind -s 'set completion-ignore-case on' + +runtimeify() { + sudo mkdir /run/user/1000 + sudo chown rebecca:rebecca /run/user/1000 + sudo chmod 700 /run/user/1000 + export XDG_RUNTIME_DIR=/run/user/1000 +} + +alias vz='kak ~/.bashrc' +alias sz='source ~/.bashrc' + +alias l='ls -lah' + +export SSH_AUTH_SOCK=/run/user/1000/ssh-agent.sock +( pgrep -u $USER ssh-agent || ssh-agent -a $SSH_AUTH_SOCK ; ) >/dev/null + +export XDG_CONFIG_HOME=$HOME/.config + +apwd () { + pwd | sed -e 's!'"$HOME"'!~!' +} + +set_title () { printf "\e]2;%s\e\\" "$1"; } +_lastcmd () { history 1 | sed -e 's/^ *[0-9]* *//g' ; } +trap 'set_title "$(_lastcmd)"' DEBUG +PROMPT_COMMAND='set_title "$(apwd)"' + +add_path () { + export PATH="$1:$PATH" +} + +add_path ~/.local/bin + +. ~/.local/bin/rws +gowork -- cgit v1.2.3