mirror of
https://github.com/dylanaraps/shfm.git
synced 2026-11-03 13:18:34 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
16d1bd77f7 |
No files matched your search
@@ -71,7 +71,7 @@ rather flexible.
|
|||||||
For ease of use, a wrapper function can be added to your .shellrc (.bashrc, etc).
|
For ease of use, a wrapper function can be added to your .shellrc (.bashrc, etc).
|
||||||
|
|
||||||
shfm() {
|
shfm() {
|
||||||
cd "$(command shfm)"
|
cd "$(command shfm "$@")"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -31,10 +31,10 @@ term_setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
term_reset() {
|
term_reset() {
|
||||||
esc DECAWM h
|
esc DECAWM h >&2
|
||||||
esc DECTCEM h >&2
|
esc DECTCEM h >&2
|
||||||
esc ED2 >&2
|
esc ED2 >&2
|
||||||
esc DECSTBM
|
esc DECSTBM >&2
|
||||||
stty "$stty"
|
stty "$stty"
|
||||||
|
|
||||||
# needed for cd-on-exit
|
# needed for cd-on-exit
|
||||||
@@ -242,7 +242,7 @@ main() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
-v|--version)
|
-v|--version)
|
||||||
printf 'shfm 0.4\n'
|
printf 'shfm 0.4.1\n'
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@@ -390,9 +390,7 @@ main() {
|
|||||||
status_line "$#"
|
status_line "$#"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
q?)
|
q?) exit 0 ;;
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
|
|
||||||
# handle keys which emit escape sequences
|
# handle keys which emit escape sequences
|
||||||
"$esc_c"*) esc=1 ;;
|
"$esc_c"*) esc=1 ;;
|
||||||
|
|||||||
Reference in new issue
Block a user