Advertisement
symdrome

zshrc

Nov 9th, 2023
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.67 KB | None | 0 0
  1. # Lines configured by zsh-newuser-install
  2. HISTFILE=~/.histfile
  3. HISTSIZE=1000
  4. SAVEHIST=1000
  5. bindkey -e
  6. # End of lines configured by zsh-newuser-install
  7. # The following lines were added by compinstall
  8. zstyle :compinstall filename '/home/fabio/.zshrc'
  9.  
  10. autoload -Uz compinit
  11. fpath+=~/.local/share/zsh-completion/completions
  12. compinit
  13. # End of lines added by compinstall
  14.  
  15. autoload -U promptinit
  16. promptinit
  17. # prompt gentoo
  18. PROMPT="%F{cyan}%2~%f %F{green}%%%f "
  19. # PROMPT="%F{240}%2~%f %F{black}%%%f "
  20.  
  21. stty -ixon
  22.  
  23. # [ -n "$XTERM_VERSION" ] && transset -t --id "$WINDOWID" >/dev/null
  24.  
  25. if [[ "${TERM}" != "" && "${TERM}" == "alacritty" ]]
  26. then
  27.     precmd()
  28.     {
  29.     # output on which level (%L) this shell is running on.
  30.     # append the current directory (%~), substitute home directories with a tilde.
  31.     # "\a" bell (man 1 echo)
  32.     # "print" must be used here; echo cannot handle prompt expansions (%L)
  33.     # print -Pn "\e]0;$(id --user --name)@$(hostname): zsh[%L] %~\a"
  34.     print -Pn "\e]0;$(id --user --name):%~\a"
  35.     }
  36.  
  37.     preexec()
  38.     {
  39.     # output current executed command with parameters
  40.     echo -en "\e]0;$(id --user --name)@$(hostname): ${1}\a"
  41.     }
  42. fi
  43.  
  44. [ -n "$EAT_SHELL_INTEGRATION_DIR" ] && \
  45.   source "$EAT_SHELL_INTEGRATION_DIR/zsh"
  46.  
  47. export PATH="$HOME/.emacs.d/bin:$PATH"
  48. export PATH="$HOME/.local/share/applications:$PATH"
  49.  
  50. . "$HOME/.cargo/env"
  51.  
  52. alias ls="ls --color"
  53. alias vi="vim"
  54. alias sudo="sudo "
  55. alias emc="emacsclient --socket-name=/tmp/emacs1000/server -c"
  56. # eval "$(zellij setup --generate-auto-start zsh)"
  57. export EDITOR="emacsclient --socket-name=/tmp/emacs1000/server -t -a ''"
  58. export VISUAL="emacsclient --socket-name=/tmp/emacs1000/server -c -a ''"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement