1
0
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
urosm 2d7898df9a update `.profile` 2024-01-14 23:24:40 +01:00
urosm 39dfe9b38a update `.bashrc` 2024-01-14 23:24:31 +01:00
2 changed files with 11 additions and 5 deletions

10
bashrc
View File

@ -8,8 +8,11 @@
shopt -s checkwinsize
# history
export HISTCONTROL=ignoredups:erasedups
export HISTSIZE=-1
export HISTFILESIZE=-1
shopt -s histappend
PROMPT_COMMAND="history -a"
PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
# set the title to user@host:dir
PS1="\[\e]0;\u@\h:\w\a\]$PS1"
@ -43,10 +46,11 @@ alias grep="grep --color"
# ls
alias ls="ls --color"
alias ll="ls -AFv1 --group-directories-first"
alias ll="ls -AF1L"
alias lll="ls -AFlh"
# nvim
alias :e="nvim"
alias :e=nvim
# enable bash completion in interactive shells
if ! shopt -oq posix; then

View File

@ -81,7 +81,9 @@ export OPAMROOT=$XDG_DATA_HOME/opam
export EDITOR=vi
# ssh agent
eval $(ssh-agent)
if [ -z "$SSH_AUTH_SOCK" ]; then
eval $(ssh-agent)
fi
# desktop
if [ "$(tty)" = "/dev/tty1" ] && command -v sway &>/dev/null; then
@ -94,5 +96,5 @@ if [ "$(tty)" = "/dev/tty1" ] && command -v sway &>/dev/null; then
export TERMINAL=footclient
export BROWSER=firefox
# run sway
exec systemd-cat --identifier=sway sway
exec sway
fi