reworked home command to clear history depending on which shell i'm in
This commit is contained in:
parent
97d8c42ab6
commit
c89725370f
3 changed files with 6 additions and 3 deletions
1
aliases
1
aliases
|
|
@ -11,7 +11,6 @@ alias dmesg="doas dmesg -H"
|
||||||
alias blkid="doas blkid"
|
alias blkid="doas blkid"
|
||||||
alias kernel="uname -r"
|
alias kernel="uname -r"
|
||||||
alias .="cd"
|
alias .="cd"
|
||||||
alias home="xclear && cd /home/brian && clear && erase_history && hash -r"
|
|
||||||
alias docs="cd ~/Documents"
|
alias docs="cd ~/Documents"
|
||||||
alias down="cd ~/Downloads"
|
alias down="cd ~/Downloads"
|
||||||
alias pics="cd ~/Pictures"
|
alias pics="cd ~/Pictures"
|
||||||
|
|
|
||||||
|
|
@ -185,5 +185,6 @@ export GREP_COLORS='ms=01;34'
|
||||||
if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi
|
if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi
|
||||||
# END_KITTY_SHELL_INTEGRATION
|
# END_KITTY_SHELL_INTEGRATION
|
||||||
|
|
||||||
|
alias home="xclear && cd /home/brian && clear && history -c && hash -r"
|
||||||
source ~/.aliases
|
source ~/.aliases
|
||||||
source /home/brian/.bash_completions/typer.sh
|
source /home/brian/.bash_completions/typer.sh
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
# to change default shell, use chsh -s $(which zsh)
|
# to change default shell, use chsh -s $(which zsh)
|
||||||
#
|
#
|
||||||
# create custom env variables:
|
# create custom env variables:
|
||||||
|
#
|
||||||
export cproj="/home/brian/Documents/Code/forks/"
|
export cproj="/home/brian/Documents/Code/forks/"
|
||||||
# custom BROWSER env for ddgr:
|
# custom BROWSER env for ddgr:
|
||||||
export BROWSER=links
|
export BROWSER=links
|
||||||
|
|
@ -70,8 +71,9 @@ unsetopt BEEP
|
||||||
PROMPT='%B%F{blue}[%n@%M %B%F{white}'%1~'%B%F{blue}]$ %B%F{white}${vcs_info_msg_0_}%B%F{blue}
|
PROMPT='%B%F{blue}[%n@%M %B%F{white}'%1~'%B%F{blue}]$ %B%F{white}${vcs_info_msg_0_}%B%F{blue}
|
||||||
└─▶%B%F{white} '
|
└─▶%B%F{white} '
|
||||||
|
|
||||||
function erase_history { local HISTSIZE=0; }
|
# function erase_history { local HISTSIZE=0; }
|
||||||
erase_history && hash -r
|
# erase_history && hash -r
|
||||||
|
|
||||||
|
|
||||||
# Set up vim mode
|
# Set up vim mode
|
||||||
bindkey -v
|
bindkey -v
|
||||||
|
|
@ -83,6 +85,7 @@ bindkey -v
|
||||||
# kitty-integration
|
# kitty-integration
|
||||||
# unfunction kitty-integration
|
# unfunction kitty-integration
|
||||||
# fi
|
# fi
|
||||||
|
alias home="xclear && cd /home/brian && clear && history -p && hash -r"
|
||||||
source ~/.aliases
|
source ~/.aliases
|
||||||
# Plugins (that need to be at the end of the zshrc script)
|
# Plugins (that need to be at the end of the zshrc script)
|
||||||
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
|
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue