summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-04-26 12:32:31 +0200
committerMarc Vertes <mvertes@free.fr>2025-04-26 12:32:31 +0200
commitdf31a7764ff9168b211070b8ccc08186a8d06d3a (patch)
tree8ea5eb868a57f417ed46af638c0a5854af947f06 /.bashrc
parent7d4158e20b29a7d1d922ad1567f802f9e4865e44 (diff)
parent733d2209b0c78adaf55baf26b4aa67ef08f057ab (diff)
Merge github.com:mvertes/dotfiles
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc6
1 files changed, 4 insertions, 2 deletions
diff --git a/.bashrc b/.bashrc
index ad713c8..52806bd 100644
--- a/.bashrc
+++ b/.bashrc
@@ -5,6 +5,7 @@
export PAGER=less
export EDITOR=vim
+export MANPAGER='vim +MANPAGER --not-a-term -'
export HISTIGNORE='sudo id:uname:date:exit:df:ll:ls:ps:pwd:tc:top:history'
export HISTCONTROL=ignoreboth:erasedups # no start space and duplicate entries
export HISTSIZE=100000 # big big history
@@ -26,13 +27,13 @@ OS=${OS:-$(~/bin/os)}
case $OS in
(arch|alpine|fedora-asahi-remix)
alias ls='ls --color=auto -v' ll='ls -AlFhv'
- [ "$OS" = arch ] || trap 'printf "\e]2;${PWD/~/\~} ${BASH_COMMAND%ps1}\a"' DEBUG
+ [ "$OS" = arch ] || trap 'printf "\e]2;%s\a" "$TERM_TAG ${BASH_COMMAND%ps1}"' DEBUG
;;
(Darwin)
alias ls='ls -GF' ll='ls -AlGFhv'
alias ldd='otool -L'
alias ibrew='arch -x86_64 /usr/local/bin/brew'
- trap 'printf "\e]2;${PWD/~/\~} ${BASH_COMMAND%update_terminal_cwd}\a"' DEBUG
+ trap 'printf "\e]2;%s\a" "$TERM_TAG ${BASH_COMMAND%update_terminal_cwd}"' DEBUG
;;
(termux)
PATH=~/bin:${HOME%/*}/usr/bin:~/go/bin
@@ -51,6 +52,7 @@ export LESS=iXFRx4
# Stopwatch
alias timer='echo "Timer started. Stop with Ctrl-D." && date && time cat && date'
+alias fd='find . -iname'
alias grep='grep -i --color'
alias more='less'
alias vi='vim'