summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-04-29 18:32:31 +0100
committerubq323 <ubq323@ubq323.website>2023-04-29 18:32:31 +0100
commitaafd78338bec7a67a7bd6a201345b718851171cd (patch)
tree835f1666179f7663eaa51fbb83c93672645a2e20
parent6e3a1f376fbef9d0f6f8c72d6b22ff1d40e812ed (diff)
m
-rw-r--r--.bashrc20
1 files changed, 9 insertions, 11 deletions
diff --git a/.bashrc b/.bashrc
index fc22a7f..305b546 100644
--- a/.bashrc
+++ b/.bashrc
@@ -5,14 +5,12 @@
alias ls='ls --color=auto'
alias grep='grep --color=auto'
-PROMPT_DIRTRIM=3
-PS1='\[\e[90m\][\u@\h \w]\$\[\e[0m\] '
+PROMPT_DIRTRIM=0
+PS1='\[\e[90m\][\u@\h \W]\$\[\e[0m\] '
shopt -s histappend
HISTCONTROL=ignoreboth
-poezio () { ~/soft/poezio/launch.sh; }
-
alias xqr='xbps-query -R'
alias xqrs='xbps-query -Rs'
@@ -44,9 +42,6 @@ _lastcmd () { history 1 | sed -e 's/^ *[0-9]* *//g' ; }
trap 'set_title "$(_lastcmd)"' DEBUG
PROMPT_COMMAND='set_title "$(apwd)"'
-trap '.b' USR1
-
-
export LUA_PATH_5_3="$HOME/.local/lib/lua/5.3/?.lua;;"
export LUA_PATH_5_1="$HOME/.local/lib/lua/5.1/?.lua;;"
export LUA_CPATH_5_3="$HOME/.local/lib/lua/5.3/?.so;;"
@@ -54,7 +49,6 @@ export LUA_CPATH_5_1="$HOME/.local/lib/lua/5.1/?.so;;"
export MANPATH="$HOME/.local/share/man:"
-
add_path () {
export PATH="$1:$PATH"
}
@@ -63,11 +57,15 @@ shed () {
# week year, week week
wy=$(date +%G)
ww=$(date +%V)
- mkdir -p "$HOME/shed/$wy/w$ww"
- cd "$HOME/shed/$wy/w$ww"
+ d="$HOME/shed/$wy/w$ww"
+ mkdir -p "$d"
+ cd "$d"
+ ln -sfT "$PWD" ~/shed/current
+
}
add_path ~/.local/bin
+add_path ~/bin
-. ~/.local/bin/rws
+. ~/bin/rws
gowork