summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-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