Browse Source

Added function for going back directories.

red-hat-laptop
Kevin Mok 7 years ago
parent
commit
5fb14fb12e
  1. 7
      dotfiles/.bash_aliases
  2. 4
      dotfiles/termConfig

7
dotfiles/.bash_aliases

@ -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"

4
dotfiles/termConfig

@ -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

Loading…
Cancel
Save