diff options
| author | bard <[email protected]> | 2024-04-15 06:24:14 -0400 |
|---|---|---|
| committer | bard <[email protected]> | 2024-04-15 06:24:14 -0400 |
| commit | 168120d4068eff9816c11f0503738c12861821ae (patch) | |
| tree | 635e839eeca920432fcaa8417b282e074e84a4c2 /shell/.bash_aliases | |
initial commit
Diffstat (limited to 'shell/.bash_aliases')
| -rw-r--r-- | shell/.bash_aliases | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/shell/.bash_aliases b/shell/.bash_aliases new file mode 100644 index 0000000..dea4234 --- /dev/null +++ b/shell/.bash_aliases @@ -0,0 +1,36 @@ +# -*- mode:sh; -*- + +alias pyenv="source /home/bard/.pyvenv/bin/activate" +alias mf='mpv "$(fzf)"' +alias comp="picom --experimental-backends --daemon" +alias killcomp="killall picom" +alias kd="killall Discord" + +# directory aliases +# cd into the previous working directory by omitting `cd`. +alias ..='cd ..' +alias ...='cd ../..' +alias ....='cd ../../..' + +# Safer default for cp, mv, rm. These will print a verbose output of +# the operations. If an existing file is affected, they will ask for +# confirmation. This can make things a bit more cumbersome, but is a +# generally safer option. +alias cp='cp -iv' +alias mv='mv -iv' +alias rm='rm -Iv' + +# Make ls a bit easier to read. Note that the -A is the same as -a but +# does not include implied paths (the current dir denoted by a dot and +# the previous dir denoted by two dots). I would also like to use the +# -p option, which prepends a forward slash to directories, but it does +# not seem to work with symlinked directories. For more, see `man ls`. +alias ls='ls -pv --color=auto --group-directories-first' +alias lsa='ls -pvA --color=auto --group-directories-first' +alias lsl='ls -lhpv --color=auto --group-directories-first' +alias lsla='ls -lhpvA --color=auto --group-directories-first' + +# emacs stuff +# change daemon permissions for script +alias ep="chmod 700 /run/user/1000/emacs/" +alias en="emacsclient -c -nw" |
