Compare commits
2 Commits
979e548ac9
...
2d7898df9a
Author | SHA1 | Date |
---|---|---|
urosm | 2d7898df9a | |
urosm | 39dfe9b38a |
10
bashrc
10
bashrc
|
@ -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
|
||||
|
|
6
profile
6
profile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue