diff options
author | Jackson Taylor <jackson@jacksontaylor.xyz> | 2022-02-03 22:22:11 -0500 |
---|---|---|
committer | Jackson Taylor <jackson@jacksontaylor.xyz> | 2022-02-03 22:28:08 -0500 |
commit | 7888574b1c18c77b75e5c6c5930cd0709f16898a (patch) | |
tree | ed4214ac5696c5641a1d8e3d335d68f7ca72f6d2 /.bash_aliases | |
parent | 7434b9127257627a48b7520effd46fb389f1fddd (diff) |
Diffstat (limited to '.bash_aliases')
-rw-r--r-- | .bash_aliases | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/.bash_aliases b/.bash_aliases deleted file mode 100644 index 5ec230d..0000000 --- a/.bash_aliases +++ /dev/null @@ -1,34 +0,0 @@ -alias books="cd $HOME/Documents/books" -alias calcurse="calcurse -D ~/.config/calcurse" -alias cdgo="cd $HOME/code/go/src/github.com/HelixBePraised" -alias code="cd $HOME/code" -alias dox="cd $HOME/Documents" -alias dl="cd $HOME/Downloads" -alias gs="git status" -alias jojo="cd $HOME/Documents/books/manga/jojos_bizarre_adventure" -alias ll="ls -lAh" -alias ls="ls -A --color=auto --group-directories-first" -alias music-dl="youtube-dl -x --audio-format mp3 " -# alias music="cd $HOME/Music" -alias pix="cd $HOME/Pictures" -alias ranger="ranger_cd" -alias site="cd ~/code/jacksontaylor.xyz" -alias up="cd ../" -alias vim="nvim" -alias wiki="nvim +VimwikiIndex" - -# Function to cd to last open dir in ranger -ranger_cd() { - temp_file="$(mktemp -t "ranger_cd.XXXXXXXXXX")" - ranger="${1:-ranger}" - if [ -n "$1" ]; then - shift - fi - "$ranger" --choosedir="$temp_file" -- "${@:-$PWD}" - return_value="$?" - if chosen_dir="$(cat -- "$temp_file")" && [ -n "$chosen_dir" ] && [ "$chosen_dir" != "$PWD" ]; then - cd -- "$chosen_dir" - fi - rm -f -- "$temp_file" - return "$return_value" -} |