Merge branch 'master' of github.com:nojhan/dotfiles

This commit is contained in:
Johann Dreo 2024-02-03 08:50:03 +01:00
commit 1b07797e8d
1165 changed files with 1602 additions and 254 deletions

55
.bashrc
View file

@ -47,7 +47,7 @@ function myip()
alias xcopy="xclip -i -selection clipboard"
# baskcup shortcuts
alias rcp='rsync -avz --ignore-existing --progress --rsh=ssh '
alias rcp='rsync -avz --ignore-existing --progress --rsh "ssh" '
alias rcp_443='rsync -avz --ignore-existing --progress --rsh "ssh -p 443" '
alias rcp_80='rsync -avz --ignore-existing --progress --rsh "ssh -p 80" '
@ -131,24 +131,25 @@ alias ms='ls'
export PATH="$PATH:$HOME/.cargo/bin"
exadef="--icons --modified --git"
exal="--long --all --group --modified --header --level 2"
exal="--long --all --group --modified --header --level 2 --time-style=long-iso --binary"
alias ls='exa ${exadef}' # add colors for filetype recognition
alias l='exa ${exadef} -1'
alias l='exa ${exadef} -1 --no-icons'
alias la='exa ${exadef} --all' # show hidden files
alias lx='exa ${exadef} ${exal} --sort extension' # sort by extension
alias lk='exa ${exadef} ${exal} --sort size' # sort by size
alias lk='exa ${exadef} ${exal} --sort size --reverse' # sort by size
alias lc='exa ${exadef} ${exal} --sort modified' # sort by change time
alias lm='exa ${exadef} ${exal} --sort=modified --reverse'
alias lu='exa ${exadef} ${exal} --sort accessed' # sort by access time
alias lt='exa ${exadef} ${exal} --sort created' # sort by date
alias lr='exa ${exadef} ${exal} --recurse' # recursive ls
alias lm='exa ${exadef} ${exal} | kak' # pipe through editor
alias le='exa ${exadef} ${exal} | kak' # pipe through editor
alias ll='exa ${exadef} ${exal}'
alias tree='exa ${xadef} ${exal} --tree' # nice alternative to 'ls'
# changes the default head/tail behaviour to output x lines,
# where x is the number of lines currently displayed on your terminal
alias head='head -n $((${LINES:-`tput lines 2>/dev/null||echo -n 12`} - 2))'
alias tail='tail -n $((${LINES:-`tput lines 2>/dev/null||echo -n 12`} - 2))'
alias head='head -n $((${LINES:-`tput lines 2>/dev/null||echo -n 12`} - 15))'
alias tail='tail -n $((${LINES:-`tput lines 2>/dev/null||echo -n 12`} - 15))'
# If the output is smaller than the screen height is smaller,
# less will just cat it
@ -161,6 +162,8 @@ export LESSOPEN='|~/code/dotfiles/lessfilter.sh %s'
# nautilus file manager in browser mode without destkop management
alias Ex='nautilus --no-desktop --browser .'
alias k="kanban"
# Make a directory and move to it
function md() {
mkdir $1
@ -434,15 +437,27 @@ if [[ $- == *i* ]]; then
source ~/code/lp-dotmatrix/dotmatrix.theme && lp_theme dotmatrix
fi
# Use autojump only if in an interactive shell
#if [[ $- == *i* ]] ; then
# source /usr/share/autojump/autojump.bash
#fi
if [[ $- == *i* ]] ; then
for f in /etc/bash_completion.d/* ; do
source "$f"
done
# for f in /usr/share/bash-completion/completions/*; do
# source "$f"
# done
bcp="/usr/share/bash-completion/completions"
enabled=("apt" "autossh" "c++" "chmod" "chown" "file-roller" "find" "g++" "git" "gitk" "htop" "inkscape" "iwconfig" "jq" "jsonschema" "kill" "killall" "lftp" "make" "man" "mktemp" "mount" "python" "python3" "pyvenv" "R" "rsync" "sh" "shellcheck" "ssh" "ssh-copy-id" "sudo" "su" "tar" "umount" "useradd" "usermod" "valgrind" "vifm" "wget" "wine")
for f in $enabled; do
source "$bcp/$f"
done
fi
export TCLLIBPATH="~/.local/share/tkthemes"
# Add pip bin dir to path:
export PATH="$PATH:$HOME/.local/bin/:$HOME/code/colout/colout/"
export PATH="$PATH:/home/nojhan/.local/bin/:/home/nojhan/go/bin/"
alias colout="colout.py"
@ -456,3 +471,21 @@ export LANG=en_US.UTF-8
alias t="~/code/taskwarrior-deluxe/taskwarrior-deluxe.py"
alias task="TASKDATA=.task task"
# Add neo4j path
export PATH="$PATH:/home/nojhan/apps/neo4j/packaging/standalone/target/neo4j-community-5.11.0-SNAPSHOT/bin/"
# export PYTHONPATH="$PYTHONPATH:/home/nojhan/code/terminator/"
export PYTHONPATH="$PYTHONPATH:/opt/pyAgrum/lib/python3.8/site-packages/:/home/nojhan/code/biocypher"
. "$HOME/.cargo/env"
# export TERMINAL="/usr/local/bin/terminator"
export TERMINAL="terminator"
eval "$(direnv hook bash)"
if [[ $- == *i* ]] ; then
# Use autojump only if in an interactive shell
source /usr/share/autojump/autojump.bash
fi