summaryrefslogtreecommitdiff
path: root/.config/shell
diff options
context:
space:
mode:
Diffstat (limited to '.config/shell')
-rw-r--r--.config/shell/aliasrc5
-rw-r--r--.config/shell/bm-dirs8
-rw-r--r--.config/shell/profile2
3 files changed, 8 insertions, 7 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
index 1c4c7fc..e60a16b 100644
--- a/.config/shell/aliasrc
+++ b/.config/shell/aliasrc
@@ -38,7 +38,7 @@ sudoedit() {
}
lfcd () {
- [ $# -gt 0 ] && [ -z "$1" ] && return 2
+ [ $# -gt 0 ] && [ -z "$1" ] && return 3
# cd "$(command lf -print-last-dir "$@")"
tmp="$(mktemp)"
@@ -47,7 +47,7 @@ lfcd () {
dir="$(cat "$tmp")"
rm -f "$tmp"
[ -d "$dir" ] || return
- [ "$dir" != "$PWD" ] || return
+ [ "$dir" != "$PWD" ] || return 0
cd "$dir"
fi
}
@@ -75,6 +75,7 @@ alias cp='cp -iv'
alias mv='mv -iv'
alias du='du -h'
alias mkdir='mkdir -pv'
+alias rmdir='rmdir -v'
alias watch='watch -c -n 1 '
alias wget='wget -c'
alias fzf='fzf --ansi'
diff --git a/.config/shell/bm-dirs b/.config/shell/bm-dirs
index 4918a18..93476eb 100644
--- a/.config/shell/bm-dirs
+++ b/.config/shell/bm-dirs
@@ -27,11 +27,11 @@ vrc ~/Dev/sites/vikas.rocks/content
vrl ~/Dev/sites/vikas.rocks/layouts
vrp ~/Dev/sites/vikas.rocks/public
td ~/Dev/test
-gd ~/GDrive/vartak/CS
-gf ~/GDrive/vartak/CS/practical-files/sem5
-gp ~/GDrive/vartak/CS/practical-notes/sem5
+gd ~/GDrive/vartak/CS/sem6
+gf ~/GDrive/vartak/CS/sem6/practicals
+gp ~/GDrive/vartak/CS/sem6/journal
gz ~/GDrive/vartak/CS/practical-zip/sem5
-gn ~/GDrive/vartak/CS/notes/sem5
+gn ~/GDrive/vartak/CS/sem6/notes
rs ~/GDrive/vartak/results
ph ~/Phone
stv ~/Phone/.stversions
diff --git a/.config/shell/profile b/.config/shell/profile
index 1393c45..46bbb9b 100644
--- a/.config/shell/profile
+++ b/.config/shell/profile
@@ -51,7 +51,7 @@ export QT_FONT_DPI=112
export SDCV_PAGER='less -R --quit-if-one-screen'
export HTTP_HOME='https://www.duckduckgo.com'
export CHROME_EXECUTABLE='chromium'
-export FZF_DEFAULT_COMMAND="find -L . ! -wholename '*.git*' \( -type d -printf '%p/\n' , ! -type d -print \)"
+export FZF_DEFAULT_COMMAND="find -H . ! -wholename '*.git*' \( -type d -printf '%p/\n' , ! -type d -print \)"
export FZF_DEFAULT_OPTS="
--history='$XDG_DATA_HOME/fzf/history'
--preview='\$PREVIEWER {}' --preview-window=hidden