Added function for going back directories.

This commit is contained in:
2017-11-19 06:41:48 -05:00
parent 8b6db413da
commit 5fb14fb12e
2 changed files with 8 additions and 3 deletions

View File

@@ -7,7 +7,6 @@ fi
# system
alias l='ls -a'
c() { cd "$@" && ls -a ; }
alias ll='ls -alF'
alias cs='printf "\033c"'
shopt -s dotglob
@@ -16,7 +15,9 @@ alias sd="sudo shutdown 0"
alias s="systemctl suspend"
# directories
alias cdr="c ~/../../"
c() { cd "$@" && ls -a ; }
cd-up() { c $(printf "%0.s../" $(seq 1 $1 )) ; }
alias "c."="cd-up"
alias cdd="c ~/Downloads"
if $in_lab; then
alias mt="okular ~/Downloads/Textbook.pdf"
@@ -67,7 +68,7 @@ alias gl="git log"
alias gsl="git shortlog"
alias gst="git stash"
alias gstp="git stash pop"
alias gstc="git stash clear"
alias gclear="git stash clear"
# idea
alias jh="echo $JAVA_HOME"

View File

@@ -5,6 +5,10 @@
[keybindings]
close_term = <Primary>w
cycle_next = <Shift>Tab
go_down = <Primary>Down
go_left = <Primary>Left
go_right = <Primary>Right
go_up = <Primary>Up
new_tab = <Primary>t
split_horiz = <Primary><Shift>e
split_vert = <Primary><Shift>o