X-Git-Url: https://git.danieliu.xyz/?p=dotfiles.git;a=blobdiff_plain;f=.config%2Fshell%2Fcommonrc;h=a5298873cafdd6fa343bdc4e03761ee510602885;hp=d0851daab9464cf09fef104d7fa7d001446163ba;hb=c3864f21c97f96577b2bfc3b4b1f492840fd850b;hpb=a798b1f596aa7c037f32f45371525331a3e773b2 diff --git a/.config/shell/commonrc b/.config/shell/commonrc index d0851da..a529887 100644 --- a/.config/shell/commonrc +++ b/.config/shell/commonrc @@ -2,6 +2,7 @@ # alias alias ls='ls --color=auto' alias grep='grep --color=auto' +alias cp='cp -i' alias dotfiles='git --git-dir=$HOME/.dotfiles --work-tree=$HOME' alias suckless-clean='make clean && rm -rf config.h && git reset --hard home/master' alias musicdl="youtube-dl -f bestaudio" @@ -11,6 +12,15 @@ alias nmaplocal='nmap -sn 192.168.1.0/24' alias refreshusb='udevadm control --reload-rules' alias vpnup='nmcli connection up pinovpn' alias drill-srs='drill-srs 2>/dev/null' +alias scrkey='screenkey -t 2.5 --mods-mode emacs -s small -p fixed -g $(slop -n -f '%g')' +alias mdp='export TERM=st; mdp' +alias R='R --vanilla' +alias fzf="fzf --color=16 --header=fzf --info=inline --preview='echo {}; file -b {}; echo =-=-=-=-=-=-=-=-=-=-=-=-=-=; if [ -d '{}' ]; then ls -A {}; else head -$LINES {}; fi'" # fzf options when running from shell +alias gdb="gdb -q" + +mkcd() { + mkdir "$1" && cd "$1" +} alias v="$EDITOR" alias z="$READER"